2020IP / TwentyTwenty.Storage

A cross-cloud storage abstraction
Other
100 stars 26 forks source link

Partial GetBlobStream #21

Closed ccoulson closed 5 years ago

ccoulson commented 6 years ago

Note: This pull request is dependent on my local extension pull request, which should be accepted first. The latest commit (202fbce) is the only actual change from the local extension pull request.

I've added a parameter to GetBlobStreamAsync to allow Range downloads to be supported. I've also changed the return type to also return the full file length (which is needed if you want to build your own range download support).

I've only actually coded implementations for Amazon and Local. Using the range parameter with other providers will result in an not implemented exception.