Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit cccd3a2

Browse files
authored
Properties property is actually defined in the CloudBlob which is a parent of CloudBlockBlob. Using a proper superclass allows to support many blob type, not only block blobs. (#385)
1 parent 6addfb0 commit cccd3a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGet.Services.Storage/AzureStorage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public override async Task SetMetadataAsync(Uri resourceUri, IDictionary<string,
138138

139139
private StorageListItem GetStorageListItem(IListBlobItem listBlobItem)
140140
{
141-
var cloudBlockBlob = (listBlobItem as CloudBlockBlob);
141+
var cloudBlockBlob = (listBlobItem as CloudBlob);
142142
var lastModified = cloudBlockBlob?.Properties.LastModified?.UtcDateTime;
143143

144144
return new StorageListItem(listBlobItem.Uri, lastModified, cloudBlockBlob?.Metadata);

0 commit comments

Comments
 (0)