public Task ReadWriteAsync(Func <IFdbTransaction, Task> asyncHandler, Action <IFdbTransaction> onDone, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteAsync(this, asyncHandler, onDone, ct));
 }
 public Task WriteAsync(Func <IFdbTransaction, Task> handler, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteAsync(this, handler, null, ct));
 }
 public Task WriteAsync(Action <IFdbTransaction> handler, Action <IFdbTransaction> onDone, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteAsync(this, handler, onDone, ct));
 }
Exemple #4
0
 public Task <TResult> WriteAsync <TResult>(Action <IFdbTransaction> handler, Func <IFdbTransaction, TResult> success, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteAsync <TResult>(this, handler, success, ct));
 }
Exemple #5
0
 public Task ReadWriteAsync(Func <IFdbTransaction, Task> asyncHandler, CancellationToken cancellationToken)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteAsync(this, asyncHandler, null, cancellationToken));
 }
 public Task ReadWriteAsync <TState>(TState state, Func <IFdbTransaction, TState, Task> handler, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteAsync(this, (tr) => handler(tr, state), ct));
 }