/// <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)
			);
		}
示例#3
0
 /// <inheritdoc />
 public ISegmentsResponse Segments(ISegmentsRequest segmentsRequest)
 {
     return(this.Dispatch <ISegmentsRequest, SegmentsRequestParameters, SegmentsResponse>(
                segmentsRequest,
                (p, d) => this.RawDispatch.IndicesSegmentsDispatch <SegmentsResponse>(p)
                ));
 }
示例#4
0
 /// <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)
			);
示例#10
0
 public static Task <SegmentsResponse> SegmentsAsync(this IElasticClient client, ISegmentsRequest request, CancellationToken ct = default)
 => client.Indices.SegmentsAsync(request, ct);
示例#11
0
 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)
			);
示例#13
0
 /// <inheritdoc />
 public Task <SegmentsResponse> SegmentsAsync(ISegmentsRequest request, CancellationToken ct = default) =>
 DoRequestAsync <ISegmentsRequest, SegmentsResponse>(request, request.RequestParameters, ct);
示例#14
0
 /// <inheritdoc />
 public SegmentsResponse Segments(ISegmentsRequest request) =>
 DoRequest <ISegmentsRequest, SegmentsResponse>(request, request.RequestParameters);