Example #1
0
 /// <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)
     );
Example #2
0
 /// <inheritdoc />
 public Task <ActivateWatchResponse> ActivateWatchAsync(IActivateWatchRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IActivateWatchRequest, ActivateWatchResponse>
     (request, request.RequestParameters, ct);
Example #3
0
 /// <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);
Example #8
0
 /// <inheritdoc/>
 public IActivateWatchResponse ActivateWatch(IActivateWatchRequest request) =>
 this.Dispatcher.Dispatch <IActivateWatchRequest, ActivateWatchRequestParameters, ActivateWatchResponse>(
     request,
     (p, d) => this.LowLevelDispatch.XpackWatcherActivateWatchDispatch <ActivateWatchResponse>(p)
     );