コード例 #1
0
        public async Task <T> Batch <T>(Func <IRiakAsyncBatchClient, T> batchFunction)
        {
            var batchEndPoint      = new RiakBatch(_endPoint);
            var batchedAsyncClient = new RiakAsyncClient(batchEndPoint);

            return(batchFunction(batchedAsyncClient));
        }
コード例 #2
0
        public IObservable <T> Batch <T>(Func <IRiakAsyncBatchClient, IObservable <T> > batchFunction)
        {
            var batchEndPoint      = new RiakBatch(_endPoint);
            var batchedAsyncClient = new RiakAsyncClient(batchEndPoint);

            return(batchFunction(batchedAsyncClient));
        }
コード例 #3
0
        public async Task Batch(Action <IRiakAsyncBatchClient> batchAction)
        {
            var batchEndPoint      = new RiakBatch(_endPoint);
            var batchedAsyncClient = new RiakAsyncClient(batchEndPoint);

            batchAction(batchedAsyncClient);
        }