public Task <R> ReadWriteAsync <R>(Func <IFdbTransaction, Task <R> > asyncHandler, Action <IFdbTransaction> onDone, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteWithResultAsync <R>(this, asyncHandler, onDone, ct));
 }
 public Task <TResult> ReadWriteAsync <TState, TResult>(TState state, Func <IFdbTransaction, TState, Task <TResult> > handler, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteWithResultAsync <TResult>(this, (tr) => handler(tr, state), ct));
 }
Exemple #3
0
 public Task <TResult> ReadWriteAsync <TIntermediate, TResult>(Func <IFdbTransaction, Task <TIntermediate> > handler, Func <IFdbTransaction, TIntermediate, Task <TResult> > onDone, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteWithResultAsync <TIntermediate, TResult>(this, handler, onDone, ct));
 }
 public Task <TResult> ReadWriteAsync <TResult>(Func <IFdbTransaction, Task <TResult> > asyncHandler, CancellationToken ct)
 {
     ThrowIfDisposed();
     return(FdbOperationContext.RunWriteWithResultAsync <TResult>(this, asyncHandler, null, ct));
 }