This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.35k
stars
4.66k
forks
source link
Azure.Storage.Files.DataLake download APIs are not a feature parity with Azure.Storage.Blobs #45418
Deprecate DataLakeFileClient.Read() and .ReadAsync() and replace with .ReadContent() and .ReadContentAsync(), returning new classes similar to BlobDownloadResult
Add DataLakeFileClient.ReadStreaming() and .ReadStreamingAsync()
This is from email thread "RE: QQ about managed API"
Today, we support the following Azure.Storage.Blob download APIs:
Response<BlobDownloadResult> DownloadContent(BlobDownloadOptions options = default, CancellationToken cancellationToken = default)
Task<Response<BlobDownloadResult>> DownloadContentAsync(BlobDownloadOptions options = default, CancellationToken cancellationToken)
Response<BlobDownloadStreamingResult> DownloadStreaming(BlobDownloadOptions options = default, CancellationToken cancellationToken = default)
Task<Response<BlobDownloadStreamingResult>> DownloadStreamingAsync(BlobDownloadOptions options = default, CancellationToken cancellationToken = default)
public virtual Response DownloadTo(Stream destination, BlobDownloadToOptions options, CancellationToken cancellationToken = default)
Task<Response> DownloadToAsync(Stream destination, BlobDownloadToOptions options, CancellationToken cancellationToken = default)
Response DownloadTo(string path, BlobDownloadToOptions options, CancellationToken cancellationToken = default)
Task<Response> DownloadToAsync(string path, BlobDownloadToOptions options, CancellationToken cancellationToken = default)
In Azure.Storage.Files.DataLake, we only support the following:
Response<FileDownloadInfo> Read(DataLakeFileReadOptions options = default, CancellationToken cancellationToken = default)
Task<Response<FileDownloadInfo>> ReadAsync(DataLakeFileReadOptions options = default, CancellationToken cancellationToken = default)
Task<Response> ReadToAsync(string path, DataLakeFileReadToOptions options = default, CancellationToken cancellationToken = default)
Response ReadTo(Stream destination, DataLakeFileReadToOptions options = default, CancellationToken cancellationToken = default)
Task<Response> ReadToAsync(Stream destination,DataLakeFileReadToOptions options = default, CancellationToken cancellationToken = default)
We need to do the following:
DataLakeFileClient.Read()
and.ReadAsync()
and replace with.ReadContent()
and.ReadContentAsync()
, returning new classes similar toBlobDownloadResult
DataLakeFileClient.ReadStreaming()
and.ReadStreamingAsync()
This is from email thread "RE: QQ about managed API"