示例#1
0
 /// <inheritdoc />
 public Task <IForecastJobResponse> ForecastJobAsync(IForecastJobRequest request,
                                                     CancellationToken cancellationToken = default(CancellationToken)
                                                     ) =>
 Dispatcher.DispatchAsync <IForecastJobRequest, ForecastJobRequestParameters, ForecastJobResponse, IForecastJobResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.XpackMlForecastDispatchAsync <ForecastJobResponse>(p, c)
     );
示例#2
0
 /// <inheritdoc />
 public IForecastJobResponse ForecastJob(IForecastJobRequest request) =>
 Dispatcher.Dispatch <IForecastJobRequest, ForecastJobRequestParameters, ForecastJobResponse>(
     request,
     (p, d) => LowLevelDispatch.XpackMlForecastDispatch <ForecastJobResponse>(p)
     );
 public static Task <ForecastJobResponse> ForecastJobAsync(this IElasticClient client, IForecastJobRequest request,
                                                           CancellationToken ct = default
                                                           )
 => client.MachineLearning.ForecastJobAsync(request, ct);
 public static ForecastJobResponse ForecastJob(this IElasticClient client, IForecastJobRequest request)
 => client.MachineLearning.ForecastJob(request);
示例#5
0
 /// <inheritdoc />
 public Task <ForecastJobResponse> ForecastJobAsync(IForecastJobRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IForecastJobRequest, ForecastJobResponse>(request, request.RequestParameters, ct);
示例#6
0
 /// <inheritdoc />
 public ForecastJobResponse ForecastJob(IForecastJobRequest request) =>
 DoRequest <IForecastJobRequest, ForecastJobResponse>(request, request.RequestParameters);