Beispiel #1
0
 public static Task <BlobWithETag <T> > GetBlobAsync <T>(this IBlobStorageProvider provider, string containerName, string blobName, IDataSerializer serializer = null)
 {
     return(provider.GetBlobAsync(containerName, blobName, typeof(T), CancellationToken.None, serializer)
            .Then(b => b == null ? null : new BlobWithETag <T> {
         Blob = (T)b.Blob, ETag = b.ETag
     }));
 }
 public void GetAndDeleteAsync()
 {
     BlobStorage.DeleteBlobIfExist(ContainerName, BlobName);
     Assert.IsNull(BlobStorage.GetBlobAsync <int>(ContainerName, BlobName).Result, "#A00");
 }
Beispiel #3
0
 public static Task <BlobWithETag <T> > GetBlobAsync <T>(this IBlobStorageProvider provider, IBlobLocation location, IDataSerializer serializer = null)
 {
     return(provider.GetBlobAsync <T>(location.ContainerName, location.Path, CancellationToken.None, serializer));
 }