/// <inheritdoc/>
 public Task <IExistsResponse> TypeExistsAsync(ITypeExistsRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 this.Dispatcher.DispatchAsync <ITypeExistsRequest, TypeExistsRequestParameters, ExistsResponse, IExistsResponse>(
     request,
     cancellationToken,
     new TypeExistConverter(DeserializeExistsResponse),
     (p, d, c) => this.LowLevelDispatch.IndicesExistsTypeDispatchAsync <ExistsResponse>(p, c)
     );
 /// <inheritdoc />
 public Task <IExistsResponse> TypeExistsAsync(ITypeExistsRequest TypeRequest)
 {
     return(this.DispatchAsync <ITypeExistsRequest, TypeExistsRequestParameters, ExistsResponse, IExistsResponse>(
                TypeRequest,
                (p, d) => this.RawDispatch.IndicesExistsTypeDispatchAsync <ExistsResponse>(
                    p.DeserializationState(new TypeExistConverter(DeserializeExistsResponse))
                    )
                ));
 }
		/// <inheritdoc />
		public Task<IExistsResponse> TypeExistsAsync(ITypeExistsRequest TypeRequest)
		{
			return this.DispatchAsync<ITypeExistsRequest, TypeExistsRequestParameters, ExistsResponse, IExistsResponse>(
				TypeRequest,
				(p, d) => this.RawDispatch.IndicesExistsTypeDispatchAsync<ExistsResponse>(
					p.DeserializationState(new TypeExistConverter(DeserializeExistsResponse))
				)
			);
		}
 public static void Update(ElasticsearchPathInfo <TypeExistsRequestParameters> pathInfo, ITypeExistsRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.HEAD;
 }
Exemple #5
0
 /// <inheritdoc />
 public Task <IExistsResponse> TypeExistsAsync(ITypeExistsRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 Dispatcher.DispatchAsync <ITypeExistsRequest, TypeExistsRequestParameters, ExistsResponse, IExistsResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.IndicesExistsTypeDispatchAsync <ExistsResponse>(p, c)
     );
Exemple #6
0
 /// <inheritdoc />
 public IExistsResponse TypeExists(ITypeExistsRequest request) =>
 Dispatcher.Dispatch <ITypeExistsRequest, TypeExistsRequestParameters, ExistsResponse>(
     request,
     (p, d) => LowLevelDispatch.IndicesExistsTypeDispatch <ExistsResponse>(p)
     );
		/// <inheritdoc/>
		public Task<IExistsResponse> TypeExistsAsync(ITypeExistsRequest request) => 
			this.Dispatcher.DispatchAsync<ITypeExistsRequest, TypeExistsRequestParameters, ExistsResponse, IExistsResponse>(
				request,
				new TypeExistConverter(DeserializeExistsResponse),
				(p, d) => this.LowLevelDispatch.IndicesExistsTypeDispatchAsync<ExistsResponse>(p)
			);
 public static Task <ExistsResponse> TypeExistsAsync(this IElasticClient client, ITypeExistsRequest request, CancellationToken ct = default)
 => client.Indices.TypeExistsAsync(request, ct);
 public static ExistsResponse TypeExists(this IElasticClient client, ITypeExistsRequest request)
 => client.Indices.TypeExists(request);
Exemple #10
0
 /// <inheritdoc />
 public Task <ExistsResponse> TypeExistsAsync(ITypeExistsRequest request, CancellationToken ct = default) =>
 DoRequestAsync <ITypeExistsRequest, ExistsResponse>(request, request.RequestParameters, ct);
Exemple #11
0
 /// <inheritdoc />
 public ExistsResponse TypeExists(ITypeExistsRequest request) =>
 DoRequest <ITypeExistsRequest, ExistsResponse>(request, request.RequestParameters);
 /// <inheritdoc/>
 public IExistsResponse TypeExists(ITypeExistsRequest request) =>
 this.Dispatcher.Dispatch <ITypeExistsRequest, TypeExistsRequestParameters, ExistsResponse>(
     request,
     new TypeExistConverter(DeserializeExistsResponse),
     (p, d) => this.LowLevelDispatch.IndicesExistsTypeDispatch <ExistsResponse>(p)
     );