示例#1
0
        public async Task <(Stream Stream, FileMetadata Metadata)> DownloadAsync(string blobName)
        {
            var client = CreateBlockClient(blobName);
            var blob   = await client.DownloadAsync();

            var properties = await client.GetPropertiesAsync();

            var result = (Stream : blob.Value.Content, Metadata : FileMetadata.FromStorageMetadata(properties.Value.Metadata));

            return(result);
        }