/// <inheritdoc /> public Task <IActivateWatchResponse> ActivateWatchAsync(IActivateWatchRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher.DispatchAsync <IActivateWatchRequest, ActivateWatchRequestParameters, ActivateWatchResponse, IActivateWatchResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.XpackWatcherActivateWatchDispatchAsync <ActivateWatchResponse>(p, c) );
/// <inheritdoc /> public Task <ActivateWatchResponse> ActivateWatchAsync(IActivateWatchRequest request, CancellationToken ct = default) => DoRequestAsync <IActivateWatchRequest, ActivateWatchResponse> (request, request.RequestParameters, ct);
/// <inheritdoc /> public ActivateWatchResponse ActivateWatch(IActivateWatchRequest request) => DoRequest <IActivateWatchRequest, ActivateWatchResponse>(request, request.RequestParameters);
/// <inheritdoc/> public Task<IActivateWatchResponse> ActivateWatchAsync(IActivateWatchRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<IActivateWatchRequest, ActivateWatchRequestParameters, ActivateWatchResponse, IActivateWatchResponse>( request, cancellationToken, (p, d, c) => this.LowLevelDispatch.XpackWatcherActivateWatchDispatchAsync<ActivateWatchResponse>(p, c) );
/// <inheritdoc/> public IActivateWatchResponse ActivateWatch(IActivateWatchRequest request) => this.Dispatcher.Dispatch<IActivateWatchRequest, ActivateWatchRequestParameters, ActivateWatchResponse>( request, (p, d) => this.LowLevelDispatch.XpackWatcherActivateWatchDispatch<ActivateWatchResponse>(p) );
public static Task <ActivateWatchResponse> ActivateWatchAsync(this IElasticClient client, IActivateWatchRequest request, CancellationToken ct = default ) => client.Watcher.ActivateAsync(request, ct);
public static ActivateWatchResponse ActivateWatch(this IElasticClient client, IActivateWatchRequest request) => client.Watcher.Activate(request);
/// <inheritdoc/> public IActivateWatchResponse ActivateWatch(IActivateWatchRequest request) => this.Dispatcher.Dispatch <IActivateWatchRequest, ActivateWatchRequestParameters, ActivateWatchResponse>( request, (p, d) => this.LowLevelDispatch.XpackWatcherActivateWatchDispatch <ActivateWatchResponse>(p) );