예제 #1
0
 /// <inheritdoc />
 public Task <IGetLicenseResponse> GetLicenseAsync(IGetLicenseRequest request, CancellationToken cancellationToken = default(CancellationToken)
                                                   ) =>
 Dispatcher.DispatchAsync <IGetLicenseRequest, GetLicenseRequestParameters, GetLicenseResponse, IGetLicenseResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.XpackLicenseGetDispatchAsync <GetLicenseResponse>(p, c)
     );
예제 #2
0
 /// <summary>
 /// <c>GET</c> request to the <c>license.get</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html</a>
 /// </summary>
 public Task <GetLicenseResponse> GetAsync(IGetLicenseRequest request, CancellationToken ct = default) => DoRequestAsync <IGetLicenseRequest, GetLicenseResponse>(request, request.RequestParameters, ct);
예제 #3
0
 /// <summary>
 /// <c>GET</c> request to the <c>license.get</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html</a>
 /// </summary>
 public GetLicenseResponse Get(IGetLicenseRequest request) => DoRequest <IGetLicenseRequest, GetLicenseResponse>(request, request.RequestParameters);
예제 #4
0
 /// <inheritdoc/>
 public IGetLicenseResponse GetLicense(IGetLicenseRequest request) =>
 this.Dispatcher.Dispatch <IGetLicenseRequest, GetLicenseRequestParameters, GetLicenseResponse>(
     request,
     (p, d) => this.LowLevelDispatch.LicenseGetDispatch <GetLicenseResponse>(p)
     );
 public static Task <GetLicenseResponse> GetLicenseAsync(this IElasticClient client, IGetLicenseRequest request, CancellationToken ct = default)
 => client.License.GetAsync(request, ct);
 public static GetLicenseResponse GetLicense(this IElasticClient client, IGetLicenseRequest request)
 => client.License.Get(request);
 /// <inheritdoc/>
 public Task <IGetLicenseResponse> GetLicenseAsync(IGetLicenseRequest request) =>
 this.Dispatcher.DispatchAsync <IGetLicenseRequest, GetLicenseRequestParameters, GetLicenseResponse, IGetLicenseResponse>(
     request,
     (p, d) => this.LowLevelDispatch.LicenseGetDispatchAsync <GetLicenseResponse>(p)
     );
		/// <inheritdoc/>
		public Task<IGetLicenseResponse> GetLicenseAsync(IGetLicenseRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IGetLicenseRequest, GetLicenseRequestParameters, GetLicenseResponse, IGetLicenseResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.XpackLicenseGetDispatchAsync<GetLicenseResponse>(p, c)
			);
		/// <inheritdoc/>
		public IGetLicenseResponse GetLicense(IGetLicenseRequest request) =>
			this.Dispatcher.Dispatch<IGetLicenseRequest, GetLicenseRequestParameters, GetLicenseResponse>(
				request,
				(p, d) =>this.LowLevelDispatch.XpackLicenseGetDispatch<GetLicenseResponse>(p)
			);