コード例 #1
0
 public Task <IShrinkIndexResponse> ShrinkIndexAsync(IShrinkIndexRequest request,
                                                     CancellationToken cancellationToken = default(CancellationToken)
                                                     ) =>
 Dispatcher.DispatchAsync <IShrinkIndexRequest, ShrinkIndexRequestParameters, ShrinkIndexResponse, IShrinkIndexResponse>(
     request,
     cancellationToken,
     LowLevelDispatch.IndicesShrinkDispatchAsync <ShrinkIndexResponse>
     );
コード例 #2
0
 public IShrinkIndexResponse ShrinkIndex(IShrinkIndexRequest request) =>
 this.Dispatcher.Dispatch <IShrinkIndexRequest, ShrinkIndexRequestParameters, ShrinkIndexResponse>(
     request,
     this.LowLevelDispatch.IndicesShrinkDispatch <ShrinkIndexResponse>
     );
コード例 #3
0
 public Task <ShrinkIndexResponse> ShrinkIndexAsync(IShrinkIndexRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IShrinkIndexRequest, ShrinkIndexResponse>(request, request.RequestParameters, ct);
コード例 #4
0
 public ShrinkIndexResponse ShrinkIndex(IShrinkIndexRequest request) =>
 DoRequest <IShrinkIndexRequest, ShrinkIndexResponse>(request, request.RequestParameters);
コード例 #5
0
		public Task<IShrinkIndexResponse> ShrinkIndexAsync(IShrinkIndexRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IShrinkIndexRequest, ShrinkIndexRequestParameters, ShrinkIndexResponse, IShrinkIndexResponse>(
				request,
				cancellationToken,
				this.LowLevelDispatch.IndicesShrinkDispatchAsync<ShrinkIndexResponse>
			);
コード例 #6
0
		public IShrinkIndexResponse ShrinkIndex(IShrinkIndexRequest request) =>
			this.Dispatcher.Dispatch<IShrinkIndexRequest, ShrinkIndexRequestParameters, ShrinkIndexResponse>(
				request,
				this.LowLevelDispatch.IndicesShrinkDispatch<ShrinkIndexResponse>
			);
コード例 #7
0
 public static Task <ShrinkIndexResponse> ShrinkIndexAsync(this IElasticClient client, IShrinkIndexRequest request,
                                                           CancellationToken ct = default
                                                           )
 => client.Indices.ShrinkAsync(request, ct);
コード例 #8
0
 public static ShrinkIndexResponse ShrinkIndex(this IElasticClient client, IShrinkIndexRequest request)
 => client.Indices.Shrink(request);