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 <T> Batch <T>(Func <IRiakAsyncBatchClient, 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); }
public IEnumerable <T> Batch <T>(Func <IRiakBatchClient, IEnumerable <T> > batchFunction) { var batchEndPoint = new RiakBatch(_endPoint); var batchedClient = new RiakClient(batchEndPoint); return(batchFunction(batchedClient)); }
public T Batch <T>(Func <IRiakBatchClient, T> batchFunction) { var batchEndPoint = new RiakBatch(_endPoint); var batchedClient = new RiakClient(batchEndPoint); return(batchFunction(batchedClient)); }
public void Batch(Action <IRiakBatchClient> batchAction) { var batchEndPoint = new RiakBatch(_endPoint); var batchedClient = new RiakClient(batchEndPoint); batchAction(batchedClient); }