/// <inheritdoc />
 public Task <IGetAliasesResponse> GetAliasAsync(IGetAliasRequest GetAliasRequest)
 {
     return(this.DispatchAsync <IGetAliasRequest, GetAliasRequestParameters, GetAliasesResponse, IGetAliasesResponse>(
                GetAliasRequest,
                (p, d) => this.RawDispatch.IndicesGetAliasDispatchAsync <GetAliasesResponse>(
                    p.DeserializationState(new Func <IElasticsearchResponse, Stream, GetAliasesResponse>(DeserializeGetAliasesResponse))
                    )
                ));
 }
		/// <inheritdoc />
		public Task<IGetAliasesResponse> GetAliasAsync(IGetAliasRequest GetAliasRequest)
		{
			return this.DispatchAsync<IGetAliasRequest, GetAliasRequestParameters, GetAliasesResponse, IGetAliasesResponse>(
				GetAliasRequest,
				(p, d) => this.RawDispatch.IndicesGetAliasDispatchAsync<GetAliasesResponse>(
					p.DeserializationState(new GetAliasesConverter(DeserializeGetAliasesResponse))
				)
			);
		}
		/// <inheritdoc />
		public Task<IGetAliasesResponse> GetAliasAsync(IGetAliasRequest GetAliasRequest)
		{
			return this.DispatchAsync<IGetAliasRequest, GetAliasRequestParameters, GetAliasesResponse, IGetAliasesResponse>(
				GetAliasRequest,
				(p, d) => this.RawDispatch.IndicesGetAliasDispatchAsync<GetAliasesResponse>(
					p.DeserializationState(new Func<IElasticsearchResponse, Stream, GetAliasesResponse>(DeserializeGetAliasesResponse))
				)
			);
		}
 /// <inheritdoc />
 public Task <IGetAliasesResponse> GetAliasAsync(IGetAliasRequest GetAliasRequest)
 {
     return(this.DispatchAsync <IGetAliasRequest, GetAliasRequestParameters, GetAliasesResponse, IGetAliasesResponse>(
                GetAliasRequest,
                (p, d) => this.RawDispatch.IndicesGetAliasDispatchAsync <GetAliasesResponse>(
                    p.DeserializationState(new GetAliasesConverter(DeserializeGetAliasesResponse))
                    )
                ));
 }
 /// <inheritdoc/>
 public Task <IGetAliasResponse> GetAliasAsync(IGetAliasRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 this.Dispatcher.DispatchAsync <IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse, IGetAliasResponse>(
     request,
     cancellationToken,
     (p, d, c) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync <GetAliasResponse>(p, c)
     );
 /// <inheritdoc/>
 public IGetAliasResponse GetAlias(IGetAliasRequest request) =>
 this.Dispatcher.Dispatch <IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse>(
     request,
     (p, d) => this.LowLevelDispatch.IndicesGetAliasDispatch <GetAliasResponse>(p)
     );
Esempio n. 7
0
 /// <inheritdoc/>
 public Task <IGetAliasesResponse> GetAliasAsync(IGetAliasRequest request) =>
 this.Dispatcher.DispatchAsync <IGetAliasRequest, GetAliasRequestParameters, GetAliasesResponse, IGetAliasesResponse>(
     request,
     new GetAliasesConverter(DeserializeGetAliasesResponse),
     (p, d) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync <GetAliasesResponse>(p)
     );
 public static void Update(ElasticsearchPathInfo <GetAliasRequestParameters> pathInfo, IGetAliasRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
     pathInfo.Name       = request.Alias ?? "*";
 }
		/// <inheritdoc/>
		public Task<IGetAliasesResponse> GetAliasAsync(IGetAliasRequest request) => 
			this.Dispatcher.DispatchAsync<IGetAliasRequest, GetAliasRequestParameters, GetAliasesResponse, IGetAliasesResponse>(
				request,
				new GetAliasesConverter(DeserializeGetAliasesResponse),
				(p, d) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync<GetAliasesResponse>(p)
			);
 /// <inheritdoc/>
 public Task <IGetAliasResponse> GetAliasAsync(IGetAliasRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 this.Dispatcher.DispatchAsync <IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse, IGetAliasResponse>(
     ForceConfiguration <IGetAliasRequest, GetAliasRequestParameters>(request, c => c.AllowedStatusCodes = new[] { -1 }),
     cancellationToken,
     (p, d, c) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync <GetAliasResponse>(p, c)
     );
Esempio n. 11
0
 /// <inheritdoc/>
 public Task <IGetAliasResponse> GetAliasAsync(IGetAliasRequest request) =>
 this.Dispatcher.DispatchAsync <IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse, IGetAliasResponse>(
     request,
     (p, d) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync <GetAliasResponse>(p)
     );
Esempio n. 12
0

        
Esempio n. 13
0

        
 public static Task <GetAliasResponse> GetAliasAsync(this IElasticClient client, IGetAliasRequest request, CancellationToken ct = default)
 => client.Indices.GetAliasAsync(request, ct);
 public static GetAliasResponse GetAlias(this IElasticClient client, IGetAliasRequest request)
 => client.Indices.GetAlias(request);
 /// <inheritdoc/>
 public IGetAliasResponse GetAlias(IGetAliasRequest request) =>
 this.Dispatcher.Dispatch <IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse>(
     ForceConfiguration <IGetAliasRequest, GetAliasRequestParameters>(request, c => c.AllowedStatusCodes = new[] { -1 }),
     (p, d) => this.LowLevelDispatch.IndicesGetAliasDispatch <GetAliasResponse>(p)
     );
		/// <inheritdoc/>
		public IGetAliasResponse GetAlias(IGetAliasRequest request) =>
			this.Dispatcher.Dispatch<IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse>(
				request,
				(p, d) => this.LowLevelDispatch.IndicesGetAliasDispatch<GetAliasResponse>(p)
			);
		/// <inheritdoc/>
		public Task<IGetAliasResponse> GetAliasAsync(IGetAliasRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse, IGetAliasResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync<GetAliasResponse>(p, c)
			);
Esempio n. 19
0
		/// <inheritdoc/>
		public Task<IGetAliasResponse> GetAliasAsync(IGetAliasRequest request) =>
			this.Dispatcher.DispatchAsync<IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse, IGetAliasResponse>(
				request,
				(p, d) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync<GetAliasResponse>(p)
			);