コード例 #1
0
 /// <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))
                    )
                ));
 }
コード例 #2
0
		/// <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))
				)
			);
		}
コード例 #3
0
		/// <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))
				)
			);
		}
コード例 #4
0
 /// <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))
                    )
                ));
 }
コード例 #5
0
 /// <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)
     );
コード例 #6
0
 /// <inheritdoc/>
 public IGetAliasResponse GetAlias(IGetAliasRequest request) =>
 this.Dispatcher.Dispatch <IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse>(
     request,
     (p, d) => this.LowLevelDispatch.IndicesGetAliasDispatch <GetAliasResponse>(p)
     );
コード例 #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)
     );
コード例 #8
0
 public static void Update(ElasticsearchPathInfo <GetAliasRequestParameters> pathInfo, IGetAliasRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
     pathInfo.Name       = request.Alias ?? "*";
 }
コード例 #9
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)
			);
コード例 #10
0
 /// <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)
     );
コード例 #11
0
 /// <inheritdoc/>
 public Task <IGetAliasResponse> GetAliasAsync(IGetAliasRequest request) =>
 this.Dispatcher.DispatchAsync <IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse, IGetAliasResponse>(
     request,
     (p, d) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync <GetAliasResponse>(p)
     );
コード例 #12
0

        
コード例 #13
0

        
コード例 #14
0
 public static Task <GetAliasResponse> GetAliasAsync(this IElasticClient client, IGetAliasRequest request, CancellationToken ct = default)
 => client.Indices.GetAliasAsync(request, ct);
コード例 #15
0
 public static GetAliasResponse GetAlias(this IElasticClient client, IGetAliasRequest request)
 => client.Indices.GetAlias(request);
コード例 #16
0
 /// <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)
     );
コード例 #17
0
		/// <inheritdoc/>
		public IGetAliasResponse GetAlias(IGetAliasRequest request) =>
			this.Dispatcher.Dispatch<IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse>(
				request,
				(p, d) => this.LowLevelDispatch.IndicesGetAliasDispatch<GetAliasResponse>(p)
			);
コード例 #18
0
		/// <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)
			);
コード例 #19
0
		/// <inheritdoc/>
		public Task<IGetAliasResponse> GetAliasAsync(IGetAliasRequest request) =>
			this.Dispatcher.DispatchAsync<IGetAliasRequest, GetAliasRequestParameters, GetAliasResponse, IGetAliasResponse>(
				request,
				(p, d) => this.LowLevelDispatch.IndicesGetAliasDispatchAsync<GetAliasResponse>(p)
			);