Example #1
0
        public IObservable <T> Batch <T>(Func <IRiakAsyncBatchClient, IObservable <T> > batchFunction)
        {
            var batchEndPoint      = new RiakBatch(_endPoint);
            var batchedAsyncClient = new RiakAsyncClient(batchEndPoint);

            return(batchFunction(batchedAsyncClient));
        }
Example #2
0
        public async Task <T> Batch <T>(Func <IRiakAsyncBatchClient, T> batchFunction)
        {
            var batchEndPoint      = new RiakBatch(_endPoint);
            var batchedAsyncClient = new RiakAsyncClient(batchEndPoint);

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

            batchAction(batchedAsyncClient);
        }
Example #4
0
        public IEnumerable <T> Batch <T>(Func <IRiakBatchClient, IEnumerable <T> > batchFunction)
        {
            var batchEndPoint = new RiakBatch(_endPoint);
            var batchedClient = new RiakClient(batchEndPoint);

            return(batchFunction(batchedClient));
        }
Example #5
0
        public T Batch <T>(Func <IRiakBatchClient, T> batchFunction)
        {
            var batchEndPoint = new RiakBatch(_endPoint);
            var batchedClient = new RiakClient(batchEndPoint);

            return(batchFunction(batchedClient));
        }
Example #6
0
        public void Batch(Action <IRiakBatchClient> batchAction)
        {
            var batchEndPoint = new RiakBatch(_endPoint);
            var batchedClient = new RiakClient(batchEndPoint);

            batchAction(batchedClient);
        }