예제 #1
0
 public static Task DestroyAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken)) {
     return blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }, ct);
 }
예제 #2
0
 public void Dispose()
 {
     _blobService.DestroyBlobsAsync(_cleanup.Select(b => b.Id).ToArray(), CancellationToken.None).DoNotWait();
 }
예제 #3
0
 public static void Destroy(IRBlobInfo blobInfo, IRBlobService blobService) {
     blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }).GetAwaiter().GetResult();
 }
예제 #4
0
 public static Task DestroyAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken))
 => blobService.DestroyBlobsAsync(new [] { blobInfo.Id }, ct);
예제 #5
0
 public static void Destroy(IRBlobInfo blobInfo, IRBlobService blobService) => blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }).GetAwaiter().GetResult();
예제 #6
0
 public static Task DestroyAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken))
 {
     return(blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }, ct));
 }
예제 #7
0
 public void Dispose()
 {
     _blobService.DestroyBlobsAsync(_cleanup.Select(b => b.Id).ToArray()).DoNotWait();
 }