private RBlobStream(IRBlobInfo blob, bool canWrite, IRBlobService blobService) { _blob = blob; _canWrite = canWrite; _blobService = blobService; _isDisposed = false; }
public DataTransferSession(IRSession session, IFileSystem fs) { _session = session; _blobService = _session; _fs = fs; _cleanup = new List <IRBlobInfo>(); }
public static Task<RBlobStream> OpenAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken)) { return Task.FromResult(Open(blobInfo, blobService)); }
public static RBlobStream Open(IRBlobInfo blobInfo, IRBlobService blobService) { return new RBlobStream(blobInfo, false, blobService); }
public static async Task<RBlobStream> CreateAsync(IRBlobService blobService, CancellationToken ct = default(CancellationToken)) { var blobId = await blobService.CreateBlobAsync(ct); return new RBlobStream(new RBlobInfo(blobId), true, blobService); }
public static RBlobStream Create(IRBlobService blobService) { return CreateAsync(blobService).GetAwaiter().GetResult(); }
public DataTransferSession(IRSession session, IFileSystem fs) { _session = session; _blobService = _session; _fs = fs; _cleanup = new List<IRBlobInfo>(); }
public static Task <RBlobStream> OpenAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken)) => Task.FromResult(Open(blobInfo, blobService));
public static RBlobStream Open(IRBlobInfo blobInfo, IRBlobService blobService) => new RBlobStream(blobInfo, false, blobService);
public static async Task <RBlobStream> CreateAsync(IRBlobService blobService, CancellationToken ct = default(CancellationToken)) { var blobId = await blobService.CreateBlobAsync(ct); return(new RBlobStream(new RBlobInfo(blobId), true, blobService)); }
public static RBlobStream Create(IRBlobService blobService) => CreateAsync(blobService).GetAwaiter().GetResult();
public static Task DestroyAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken)) { return(blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }, ct)); }
public static RBlobStream Open(IRBlobInfo blobInfo, IRBlobService blobService) { return(new RBlobStream(blobInfo, false, blobService)); }
public static RBlobStream Create(IRBlobService blobService) { return(CreateAsync(blobService).GetAwaiter().GetResult()); }
public static void Destroy(IRBlobInfo blobInfo, IRBlobService blobService) { blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }).GetAwaiter().GetResult(); }
public static Task DestroyAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken)) { return blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }, ct); }
public static void Destroy(IRBlobInfo blobInfo, IRBlobService blobService) => blobService.DestroyBlobsAsync(new ulong[] { blobInfo.Id }).GetAwaiter().GetResult();
public static Task DestroyAsync(IRBlobInfo blobInfo, IRBlobService blobService, CancellationToken ct = default(CancellationToken)) => blobService.DestroyBlobsAsync(new [] { blobInfo.Id }, ct);
public DataTransferSession(IRBlobService service, IFileSystem fs) { _blobService = service; _fs = fs; _cleanup = new List <IRBlobInfo>(); }