示例#1
0
 /// <inheritdoc />
 public Task <CloseJobResponse> CloseJobAsync(ICloseJobRequest request, CancellationToken ct = default) =>
 DoRequestAsync <ICloseJobRequest, CloseJobResponse>(request, request.RequestParameters, ct);
示例#2
0
 /// <inheritdoc />
 public CloseJobResponse CloseJob(ICloseJobRequest request) =>
 DoRequest <ICloseJobRequest, CloseJobResponse>(request, request.RequestParameters);
 /// <inheritdoc/>
 public Task <ICloseJobResponse> CloseJobAsync(ICloseJobRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 this.Dispatcher.DispatchAsync <ICloseJobRequest, CloseJobRequestParameters, CloseJobResponse, ICloseJobResponse>(
     request,
     cancellationToken,
     (p, d, c) => this.LowLevelDispatch.XpackMlCloseJobDispatchAsync <CloseJobResponse>(p, c)
     );
 /// <inheritdoc/>
 public ICloseJobResponse CloseJob(ICloseJobRequest request) =>
 this.Dispatcher.Dispatch <ICloseJobRequest, CloseJobRequestParameters, CloseJobResponse>(
     request,
     (p, d) => this.LowLevelDispatch.XpackMlCloseJobDispatch <CloseJobResponse>(p)
     );
 public static Task <CloseJobResponse> CloseJobAsync(this IElasticClient client, ICloseJobRequest request, CancellationToken ct = default)
 => client.MachineLearning.CloseJobAsync(request, ct);
 public static CloseJobResponse CloseJob(this IElasticClient client, ICloseJobRequest request)
 => client.MachineLearning.CloseJob(request);