/// <inheritdoc /> public Task <IExistsResponse> IndexExistsAsync(IIndexExistsRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher.DispatchAsync <IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse, IExistsResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.IndicesExistsDispatchAsync <ExistsResponse>(p, c) );
/// <inheritdoc/> public Task <IExistsResponse> IndexExistsAsync(IIndexExistsRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync <IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse, IExistsResponse>( request, cancellationToken, new IndexExistConverter(DeserializeExistsResponse), (p, d, c) => this.LowLevelDispatch.IndicesExistsDispatchAsync <ExistsResponse>(p, c) );
/// <inheritdoc/> public Task<IExistsResponse> IndexExistsAsync(IIndexExistsRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse, IExistsResponse>( request, cancellationToken, new IndexExistConverter(DeserializeExistsResponse), (p, d, c) => this.LowLevelDispatch.IndicesExistsDispatchAsync<ExistsResponse>(p, c) );
/// <inheritdoc /> public Task<IExistsResponse> IndexExistsAsync(IIndexExistsRequest indexRequest) { return this.DispatchAsync<IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse, IExistsResponse>( indexRequest, (p, d) => this.RawDispatch.IndicesExistsDispatchAsync<ExistsResponse>( p.DeserializationState(new IndexExistConverter(DeserializeExistsResponse)) ) ); }
/// <inheritdoc /> public IExistsResponse IndexExists(IIndexExistsRequest indexRequest) { return this.Dispatch<IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse>( indexRequest, (p, d) => this.RawDispatch.IndicesExistsDispatch<ExistsResponse>( p.DeserializationState(new Func<IElasticsearchResponse, Stream, ExistsResponse>(DeserializeExistsResponse)) ) ); }
/// <inheritdoc /> public Task <IExistsResponse> IndexExistsAsync(IIndexExistsRequest indexRequest) { return(this.DispatchAsync <IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse, IExistsResponse>( indexRequest, (p, d) => this.RawDispatch.IndicesExistsDispatchAsync <ExistsResponse>( p.DeserializationState(new Func <IElasticsearchResponse, Stream, ExistsResponse>(DeserializeExistsResponse)) ) )); }
/// <inheritdoc /> public IExistsResponse IndexExists(IIndexExistsRequest request) => Dispatcher.Dispatch <IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse>( request, (p, d) => LowLevelDispatch.IndicesExistsDispatch <ExistsResponse>(p) );
/// <inheritdoc /> public Task <ExistsResponse> IndexExistsAsync(IIndexExistsRequest request, CancellationToken ct = default) => DoRequestAsync <IIndexExistsRequest, ExistsResponse>(request, request.RequestParameters, ct);
/// <inheritdoc /> public ExistsResponse IndexExists(IIndexExistsRequest request) => DoRequest <IIndexExistsRequest, ExistsResponse>(request, request.RequestParameters);
public static void Update(ElasticsearchPathInfo <IndexExistsRequestParameters> pathInfo, IIndexExistsRequest request) { pathInfo.HttpMethod = PathInfoHttpMethod.HEAD; }
public static Task <ExistsResponse> IndexExistsAsync(this IElasticClient client, IIndexExistsRequest request, CancellationToken ct = default) => client.Indices.ExistsAsync(request, ct);
public static ExistsResponse IndexExists(this IElasticClient client, IIndexExistsRequest request) => client.Indices.Exists(request);
/// <inheritdoc/> public Task<IExistsResponse> IndexExistsAsync(IIndexExistsRequest request) => this.Dispatcher.DispatchAsync<IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse, IExistsResponse>( request, new IndexExistConverter(DeserializeExistsResponse), (p, d) => this.LowLevelDispatch.IndicesExistsDispatchAsync<ExistsResponse>(p) );
/// <inheritdoc/> public IExistsResponse IndexExists(IIndexExistsRequest request) => this.Dispatcher.Dispatch <IIndexExistsRequest, IndexExistsRequestParameters, ExistsResponse>( request, new IndexExistConverter(DeserializeExistsResponse), (p, d) => this.LowLevelDispatch.IndicesExistsDispatch <ExistsResponse>(p) );