示例#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);
示例#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)
     );
示例#3
0
 /// <inheritdoc />
 public ISegmentsResponse Segments(Indices indices, Func <SegmentsDescriptor, ISegmentsRequest> selector = null) =>
 Segments(selector.InvokeOrDefault(new SegmentsDescriptor().Index(indices)));
示例#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);
示例#5
0
 /// <inheritdoc />
 public ISyncedFlushResponse SyncedFlush(Indices indices, Func <SyncedFlushDescriptor, ISyncedFlushRequest> selector = null) =>
 SyncedFlush(selector.InvokeOrDefault(new SyncedFlushDescriptor().Index(indices)));