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