/// <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)
			);
예제 #4
0
		/// <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))
				)
			);
		}
예제 #6
0
 /// <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)
     );
예제 #8
0
 /// <inheritdoc />
 public Task <ExistsResponse> IndexExistsAsync(IIndexExistsRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IIndexExistsRequest, ExistsResponse>(request, request.RequestParameters, ct);
예제 #9
0
 /// <inheritdoc />
 public ExistsResponse IndexExists(IIndexExistsRequest request) =>
 DoRequest <IIndexExistsRequest, ExistsResponse>(request, request.RequestParameters);
예제 #10
0
 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)
     );