public static IGetWatchResponse GetWatch(this IElasticClient client, IGetWatchRequest request)
 {
     return(((IHighLevelToLowLevelDispatcher)client).Dispatch <IGetWatchRequest, GetWatchRequestParameters, GetWatchResponse>(
                request,
                (p, d) => client.Raw.WatcherGetWatchDispatch <GetWatchResponse>(p)
                ));
 }
 public static Task<IGetWatchResponse> GetWatchAsync(this IElasticClient client, IGetWatchRequest request)
 {
     return ((IHighLevelToLowLevelDispatcher)client).DispatchAsync<IGetWatchRequest, GetWatchRequestParameters, GetWatchResponse, IGetWatchResponse>(
         request,
         (p, d) => client.Raw.WatcherGetWatchDispatchAsync<GetWatchResponse>(p)
     );
 }
Esempio n. 3
0
 /// <inheritdoc />
 public Task <GetWatchResponse> GetWatchAsync(IGetWatchRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IGetWatchRequest, GetWatchResponse>
     (request, request.RequestParameters, ct);
Esempio n. 4
0
 /// <inheritdoc />
 public GetWatchResponse GetWatch(IGetWatchRequest request) =>
 DoRequest <IGetWatchRequest, GetWatchResponse>(request, request.RequestParameters);
 /// <inheritdoc />
 public Task <IGetWatchResponse> GetWatchAsync(IGetWatchRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 Dispatcher.DispatchAsync <IGetWatchRequest, GetWatchRequestParameters, GetWatchResponse, IGetWatchResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.XpackWatcherGetWatchDispatchAsync <GetWatchResponse>(p, c)
     );
 /// <inheritdoc />
 public IGetWatchResponse GetWatch(IGetWatchRequest request) =>
 Dispatcher.Dispatch <IGetWatchRequest, GetWatchRequestParameters, GetWatchResponse>(
     request,
     (p, d) => LowLevelDispatch.XpackWatcherGetWatchDispatch <GetWatchResponse>(p)
     );
 public static void Update(ElasticsearchPathInfo <GetWatchRequestParameters> pathInfo, IGetWatchRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
 }
 public static Task <GetWatchResponse> GetWatchAsync(this IElasticClient client, IGetWatchRequest request, CancellationToken ct = default)
 => client.Watcher.GetAsync(request, ct);
 public static GetWatchResponse GetWatch(this IElasticClient client, IGetWatchRequest request)
 => client.Watcher.Get(request);
		/// <inheritdoc/>
		public Task<IGetWatchResponse> GetWatchAsync(IGetWatchRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IGetWatchRequest, GetWatchRequestParameters, GetWatchResponse, IGetWatchResponse>(
				request,
				cancellationToken,
				(p, d ,c) => this.LowLevelDispatch.XpackWatcherGetWatchDispatchAsync<GetWatchResponse>(p,c)
			);
		/// <inheritdoc/>
		public IGetWatchResponse GetWatch(IGetWatchRequest request) =>
			this.Dispatcher.Dispatch<IGetWatchRequest, GetWatchRequestParameters, GetWatchResponse>(
				request,
				(p, d) => this.LowLevelDispatch.XpackWatcherGetWatchDispatch<GetWatchResponse>(p)
			);