Example #1
0
 /// <inheritdoc />
 public Task <IClearCacheResponse> ClearCacheAsync(
     Indices indices,
     Func <ClearCacheDescriptor, IClearCacheRequest> selector = null,
     CancellationToken cancellationToken = default(CancellationToken)
     ) => ClearCacheAsync(selector.InvokeOrDefault(new ClearCacheDescriptor().Index(indices)), cancellationToken);
Example #2
0
 /// <inheritdoc />
 public IClearCacheResponse ClearCache(Indices indices, Func <ClearCacheDescriptor, IClearCacheRequest> selector = null) =>
 Dispatcher.Dispatch <IClearCacheRequest, ClearCacheRequestParameters, ClearCacheResponse>(
     selector.InvokeOrDefault(new ClearCacheDescriptor().Index(indices)),
     (p, d) => LowLevelDispatch.IndicesClearCacheDispatch <ClearCacheResponse>(p)
     );
Example #3
0
 /// <inheritdoc />
 public ISegmentsResponse Segments(Indices indices, Func <SegmentsDescriptor, ISegmentsRequest> selector = null) =>
 Segments(selector.InvokeOrDefault(new SegmentsDescriptor().Index(indices)));
Example #4
0
 /// <inheritdoc />
 public Task <ISegmentsResponse> SegmentsAsync(
     Indices indices,
     Func <SegmentsDescriptor, ISegmentsRequest> selector = null,
     CancellationToken cancellationToken = default(CancellationToken)
     ) => SegmentsAsync(selector.InvokeOrDefault(new SegmentsDescriptor().Index(indices)), cancellationToken);
Example #5
0
 /// <inheritdoc />
 public ISyncedFlushResponse SyncedFlush(Indices indices, Func <SyncedFlushDescriptor, ISyncedFlushRequest> selector = null) =>
 SyncedFlush(selector.InvokeOrDefault(new SyncedFlushDescriptor().Index(indices)));