示例#1
0
 /// <inheritdoc />
 public PutRoleResponse PutRole(IPutRoleRequest request) =>
 DoRequest <IPutRoleRequest, PutRoleResponse>(request, request.RequestParameters);
示例#2
0
 /// <inheritdoc />
 public Task <PutRoleResponse> PutRoleAsync(IPutRoleRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IPutRoleRequest, PutRoleResponse>(request, request.RequestParameters, ct);
		/// <inheritdoc/>
		public IPutRoleResponse PutRole(IPutRoleRequest request) =>
			this.Dispatcher.Dispatch<IPutRoleRequest, PutRoleRequestParameters, PutRoleResponse>(
				request,
				this.LowLevelDispatch.XpackSecurityPutRoleDispatch<PutRoleResponse>
			);
		/// <inheritdoc/>
		public Task<IPutRoleResponse> PutRoleAsync(IPutRoleRequest request) =>
			this.Dispatcher.DispatchAsync<IPutRoleRequest, PutRoleRequestParameters, PutRoleResponse, IPutRoleResponse>(
				request,
				this.LowLevelDispatch.XpackSecurityPutRoleDispatchAsync<PutRoleResponse>
			);
示例#5
0
 /// <inheritdoc />
 public IPutRoleResponse PutRole(IPutRoleRequest request) =>
 Dispatcher.Dispatch <IPutRoleRequest, PutRoleRequestParameters, PutRoleResponse>(
     request,
     LowLevelDispatch.XpackSecurityPutRoleDispatch <PutRoleResponse>
     );
示例#6
0
 /// <inheritdoc />
 public Task <IPutRoleResponse> PutRoleAsync(IPutRoleRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 Dispatcher.DispatchAsync <IPutRoleRequest, PutRoleRequestParameters, PutRoleResponse, IPutRoleResponse>(
     request,
     cancellationToken,
     LowLevelDispatch.XpackSecurityPutRoleDispatchAsync <PutRoleResponse>
     );
示例#7
0
 public static Task <PutRoleResponse> PutRoleAsync(this IElasticClient client, IPutRoleRequest request, CancellationToken ct = default)
 => client.Security.PutRoleAsync(request, ct);
示例#8
0
 public static PutRoleResponse PutRole(this IElasticClient client, IPutRoleRequest request)
 => client.Security.PutRole(request);
 /// <inheritdoc/>
 public Task <IPutRoleResponse> PutRoleAsync(IPutRoleRequest request) =>
 this.Dispatcher.DispatchAsync <IPutRoleRequest, PutRoleRequestParameters, PutRoleResponse, IPutRoleResponse>(
     request,
     this.LowLevelDispatch.XpackSecurityPutRoleDispatchAsync <PutRoleResponse>
     );
		/// <inheritdoc/>
		public Task<IPutRoleResponse> PutRoleAsync(IPutRoleRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IPutRoleRequest, PutRoleRequestParameters, PutRoleResponse, IPutRoleResponse>(
				request,
				cancellationToken,
				this.LowLevelDispatch.XpackSecurityPutRoleDispatchAsync<PutRoleResponse>
			);
 /// <inheritdoc/>
 public IPutRoleResponse PutRole(IPutRoleRequest request) =>
 this.Dispatcher.Dispatch <IPutRoleRequest, PutRoleRequestParameters, PutRoleResponse>(
     request,
     this.LowLevelDispatch.ShieldPutRoleDispatch <PutRoleResponse>
     );