/// <inheritdoc /> public IShardsOperationResponse ClearCache(IClearCacheRequest clearCacheRequest) { return this.Dispatch<IClearCacheRequest, ClearCacheRequestParameters, ShardsOperationResponse>( clearCacheRequest, (p, d) => this.RawDispatch.IndicesClearCacheDispatch<ShardsOperationResponse>(p) ); }
/// <inheritdoc /> public Task<IShardsOperationResponse> ClearCacheAsync(IClearCacheRequest clearCacheRequest) { return this.DispatchAsync<IClearCacheRequest, ClearCacheRequestParameters, ShardsOperationResponse, IShardsOperationResponse>( clearCacheRequest, (p, d) => this.RawDispatch.IndicesClearCacheDispatchAsync<ShardsOperationResponse>(p) ); }
/// <inheritdoc /> public Task <IClearCacheResponse> ClearCacheAsync(IClearCacheRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher.DispatchAsync <IClearCacheRequest, ClearCacheRequestParameters, ClearCacheResponse, IClearCacheResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.IndicesClearCacheDispatchAsync <ClearCacheResponse>(p, c) );
/// <inheritdoc /> public Task <IShardsOperationResponse> ClearCacheAsync(IClearCacheRequest clearCacheRequest) { return(this.DispatchAsync <IClearCacheRequest, ClearCacheRequestParameters, ShardsOperationResponse, IShardsOperationResponse>( clearCacheRequest, (p, d) => this.RawDispatch.IndicesClearCacheDispatchAsync <ShardsOperationResponse>(p) )); }
/// <inheritdoc /> public IShardsOperationResponse ClearCache(IClearCacheRequest clearCacheRequest) { return(this.Dispatch <IClearCacheRequest, ClearCacheRequestParameters, ShardsOperationResponse>( clearCacheRequest, (p, d) => this.RawDispatch.IndicesClearCacheDispatch <ShardsOperationResponse>(p) )); }
public static void Update(ElasticsearchPathInfo <ClearCacheRequestParameters> pathInfo, IClearCacheRequest request) { pathInfo.HttpMethod = PathInfoHttpMethod.POST; }
/// <inheritdoc/> public Task<IClearCacheResponse> ClearCacheAsync(IClearCacheRequest request) => this.Dispatcher.DispatchAsync<IClearCacheRequest, ClearCacheRequestParameters, ClearCacheResponse, IClearCacheResponse>( request, (p, d) => this.LowLevelDispatch.IndicesClearCacheDispatchAsync<ClearCacheResponse>(p) );
/// <inheritdoc/> public IClearCacheResponse ClearCache(IClearCacheRequest request) => this.Dispatcher.Dispatch<IClearCacheRequest, ClearCacheRequestParameters, ClearCacheResponse>( request, (p, d) => this.LowLevelDispatch.IndicesClearCacheDispatch<ClearCacheResponse>(p) );
/// <inheritdoc/> public Task<IClearCacheResponse> ClearCacheAsync(IClearCacheRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<IClearCacheRequest, ClearCacheRequestParameters, ClearCacheResponse, IClearCacheResponse>( request, cancellationToken, (p, d, c) => this.LowLevelDispatch.IndicesClearCacheDispatchAsync<ClearCacheResponse>(p, c) );
/// <inheritdoc /> public IClearCacheResponse ClearCache(IClearCacheRequest request) => Dispatcher.Dispatch <IClearCacheRequest, ClearCacheRequestParameters, ClearCacheResponse>( request, (p, d) => LowLevelDispatch.IndicesClearCacheDispatch <ClearCacheResponse>(p) );
/// <inheritdoc/> public Task <IShardsOperationResponse> ClearCacheAsync(IClearCacheRequest request) => this.Dispatcher.DispatchAsync <IClearCacheRequest, ClearCacheRequestParameters, ShardsOperationResponse, IShardsOperationResponse>( request, (p, d) => this.LowLevelDispatch.IndicesClearCacheDispatchAsync <ShardsOperationResponse>(p) );
/// <inheritdoc/> public IShardsOperationResponse ClearCache(IClearCacheRequest request) => this.Dispatcher.Dispatch <IClearCacheRequest, ClearCacheRequestParameters, ShardsOperationResponse>( request, (p, d) => this.LowLevelDispatch.IndicesClearCacheDispatch <ShardsOperationResponse>(p) );
/// <inheritdoc /> public Task <ClearCacheResponse> ClearCacheAsync(IClearCacheRequest request, CancellationToken ct = default) => DoRequestAsync <IClearCacheRequest, ClearCacheResponse>(request, request.RequestParameters, ct);
/// <inheritdoc /> public ClearCacheResponse ClearCache(IClearCacheRequest request) => DoRequest <IClearCacheRequest, ClearCacheResponse>(request, request.RequestParameters);
public static Task <ClearCacheResponse> ClearCacheAsync(this IElasticClient client, IClearCacheRequest request, CancellationToken ct = default) => client.Indices.ClearCacheAsync(request, ct);
public static ClearCacheResponse ClearCache(this IElasticClient client, IClearCacheRequest request) => client.Indices.ClearCache(request);