public async Task <T> Batch <T>(Func <IRiakAsyncBatchClient, T> batchFunction) { var batchEndPoint = new RiakBatch(_endPoint); var batchedAsyncClient = new RiakAsyncClient(batchEndPoint); return(batchFunction(batchedAsyncClient)); }
public IObservable <T> Batch <T>(Func <IRiakAsyncBatchClient, IObservable <T> > batchFunction) { var batchEndPoint = new RiakBatch(_endPoint); var batchedAsyncClient = new RiakAsyncClient(batchEndPoint); return(batchFunction(batchedAsyncClient)); }
public async Task Batch(Action <IRiakAsyncBatchClient> batchAction) { var batchEndPoint = new RiakBatch(_endPoint); var batchedAsyncClient = new RiakAsyncClient(batchEndPoint); batchAction(batchedAsyncClient); }