/// <inheritdoc /> public ISegmentsResponse Segments(ISegmentsRequest segmentsRequest) { return this.Dispatch<ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse>( segmentsRequest, (p, d) => this.RawDispatch.IndicesSegmentsDispatch<SegmentsResponse>(p) ); }
/// <inheritdoc /> public Task<ISegmentsResponse> SegmentsAsync(ISegmentsRequest segmentsRequest) { return this.DispatchAsync<ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse, ISegmentsResponse>( segmentsRequest, (p, d) => this.RawDispatch.IndicesSegmentsDispatchAsync<SegmentsResponse>(p) ); }
/// <inheritdoc /> public ISegmentsResponse Segments(ISegmentsRequest segmentsRequest) { return(this.Dispatch <ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse>( segmentsRequest, (p, d) => this.RawDispatch.IndicesSegmentsDispatch <SegmentsResponse>(p) )); }
/// <inheritdoc /> public Task <ISegmentsResponse> SegmentsAsync(ISegmentsRequest segmentsRequest) { return(this.DispatchAsync <ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse, ISegmentsResponse>( segmentsRequest, (p, d) => this.RawDispatch.IndicesSegmentsDispatchAsync <SegmentsResponse>(p) )); }
/// <inheritdoc /> public Task <ISegmentsResponse> SegmentsAsync(ISegmentsRequest request, CancellationToken cancellationToken = default(CancellationToken)) => Dispatcher.DispatchAsync <ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse, ISegmentsResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.IndicesSegmentsDispatchAsync <SegmentsResponse>(p, c) );
/// <inheritdoc /> public ISegmentsResponse Segments(ISegmentsRequest request) => Dispatcher.Dispatch <ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse>( request, (p, d) => LowLevelDispatch.IndicesSegmentsDispatch <SegmentsResponse>(p) );
/// <inheritdoc/> public Task <ISegmentsResponse> SegmentsAsync(ISegmentsRequest request) => this.Dispatcher.DispatchAsync <ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse, ISegmentsResponse>( request, (p, d) => this.LowLevelDispatch.IndicesSegmentsDispatchAsync <SegmentsResponse>(p) );
/// <inheritdoc/> public Task<ISegmentsResponse> SegmentsAsync(ISegmentsRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse, ISegmentsResponse>( request, cancellationToken, (p, d, c) => this.LowLevelDispatch.IndicesSegmentsDispatchAsync<SegmentsResponse>(p, c) );
/// <inheritdoc/> public ISegmentsResponse Segments(ISegmentsRequest request) => this.Dispatcher.Dispatch<ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse>( request, (p, d) => this.LowLevelDispatch.IndicesSegmentsDispatch<SegmentsResponse>(p) );
public static Task <SegmentsResponse> SegmentsAsync(this IElasticClient client, ISegmentsRequest request, CancellationToken ct = default) => client.Indices.SegmentsAsync(request, ct);
public static SegmentsResponse Segments(this IElasticClient client, ISegmentsRequest request) => client.Indices.Segments(request);
/// <inheritdoc/> public Task<ISegmentsResponse> SegmentsAsync(ISegmentsRequest request) => this.Dispatcher.DispatchAsync<ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse, ISegmentsResponse>( request, (p, d) => this.LowLevelDispatch.IndicesSegmentsDispatchAsync<SegmentsResponse>(p) );
/// <inheritdoc /> public Task <SegmentsResponse> SegmentsAsync(ISegmentsRequest request, CancellationToken ct = default) => DoRequestAsync <ISegmentsRequest, SegmentsResponse>(request, request.RequestParameters, ct);
/// <inheritdoc /> public SegmentsResponse Segments(ISegmentsRequest request) => DoRequest <ISegmentsRequest, SegmentsResponse>(request, request.RequestParameters);