コード例 #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));
        }
コード例 #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));
        }
コード例 #3
0
        public async Task Batch(Action <IRiakAsyncBatchClient> batchAction)
        {
            var batchEndPoint      = new RiakBatch(_endPoint);
            var batchedAsyncClient = new RiakAsyncClient(batchEndPoint);

            batchAction(batchedAsyncClient);
        }
コード例 #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));
        }
コード例 #5
0
        public T Batch <T>(Func <IRiakBatchClient, T> batchFunction)
        {
            var batchEndPoint = new RiakBatch(_endPoint);
            var batchedClient = new RiakClient(batchEndPoint);

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

            batchAction(batchedClient);
        }