public Task <IPercolateResponse> PercolateAsync <T>(IPercolateRequest <T> request, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.Dispatcher.DispatchAsync <IPercolateRequest <T>, PercolateRequestParameters, PercolateResponse, IPercolateResponse>( request, cancellationToken, this.LowLevelDispatch.PercolateDispatchAsync <PercolateResponse> );
/// <inheritdoc /> public Task <IPercolateResponse> PercolateAsync <T>(IPercolateRequest <T> percolateRequest) where T : class { return(this.DispatchAsync <IPercolateRequest <T>, PercolateRequestParameters, PercolateResponse, IPercolateResponse>( percolateRequest, (p, d) => this.RawDispatch.PercolateDispatchAsync <PercolateResponse>(p, d) )); }
/// <inheritdoc /> public IPercolateResponse Percolate <T>(IPercolateRequest <T> percolateRequest) where T : class { return(this.Dispatch <IPercolateRequest <T>, PercolateRequestParameters, PercolateResponse>( percolateRequest, (p, d) => this.RawDispatch.PercolateDispatch <PercolateResponse>(p, d) )); }
/// <inheritdoc/> public Task <IPercolateResponse> PercolateAsync <T>(IPercolateRequest <T> request) where T : class => this.Dispatcher.DispatchAsync <IPercolateRequest <T>, PercolateRequestParameters, PercolateResponse, IPercolateResponse>( request, this.LowLevelDispatch.PercolateDispatchAsync <PercolateResponse> );
/// <inheritdoc/> public IPercolateResponse Percolate <T>(IPercolateRequest <T> request) where T : class => this.Dispatcher.Dispatch <IPercolateRequest <T>, PercolateRequestParameters, PercolateResponse>( request, this.LowLevelDispatch.PercolateDispatch <PercolateResponse> );
public static void Update <T>(ElasticsearchPathInfo <PercolateRequestParameters> pathInfo, IPercolateRequest <T> request) where T : class { pathInfo.Id = request.Id; pathInfo.HttpMethod = PathInfoHttpMethod.POST; }