Ejemplo n.º 1
0
 /// <inheritdoc />
 public Task <IChangePasswordResponse> ChangePasswordAsync(IChangePasswordRequest request,
                                                           CancellationToken cancellationToken = default(CancellationToken)
                                                           ) =>
 Dispatcher.DispatchAsync <IChangePasswordRequest, ChangePasswordRequestParameters, ChangePasswordResponse, IChangePasswordResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.XpackSecurityChangePasswordDispatchAsync <ChangePasswordResponse>(p, d, c)
     );
 /// <inheritdoc />
 public async Task <IUserCredentials> ChangePasswordAsync(IChangePasswordRequest changePasswordRequest, string userId, CancellationToken cancellationToken = default(CancellationToken))
 => await PostAsync <UserCredentials>(new HttpRequest
 {
     Uri            = "/api/v1/users/{userId}/credentials/change_password",
     Payload        = changePasswordRequest,
     PathParameters = new Dictionary <string, object>()
     {
         ["userId"] = userId,
     },
 }, cancellationToken).ConfigureAwait(false);
Ejemplo n.º 3
0
 /// <inheritdoc/>
 public Task <IUserCredentials> ChangePasswordAsync(IChangePasswordRequest changePasswordRequest, string userId, CancellationToken cancellationToken = default)
 => ChangePasswordAsync(changePasswordRequest, userId, null, cancellationToken);
 public static Task <ChangePasswordResponse> ChangePasswordAsync(this IElasticClient client, IChangePasswordRequest request,
                                                                 CancellationToken ct = default
                                                                 )
 => client.Security.ChangePasswordAsync(request, ct);
 public static ChangePasswordResponse ChangePassword(this IElasticClient client, IChangePasswordRequest request)
 => client.Security.ChangePassword(request);
		/// <inheritdoc/>
		public Task<IChangePasswordResponse> ChangePasswordAsync(IChangePasswordRequest request) =>
			this.Dispatcher.DispatchAsync<IChangePasswordRequest, ChangePasswordRequestParameters, ChangePasswordResponse, IChangePasswordResponse>(
				request,
				(p, d) => this.LowLevelDispatch.XpackSecurityChangePasswordDispatchAsync<ChangePasswordResponse>(p, d)
			);
		/// <inheritdoc/>
		public IChangePasswordResponse ChangePassword(IChangePasswordRequest request) =>
			this.Dispatcher.Dispatch<IChangePasswordRequest, ChangePasswordRequestParameters, ChangePasswordResponse>(
				request,
				(p, d) => this.LowLevelDispatch.XpackSecurityChangePasswordDispatch<ChangePasswordResponse>(p, d)
			);
Ejemplo n.º 8
0
 /// <inheritdoc />
 public IChangePasswordResponse ChangePassword(IChangePasswordRequest request) =>
 Dispatcher.Dispatch <IChangePasswordRequest, ChangePasswordRequestParameters, ChangePasswordResponse>(
     request,
     (p, d) => LowLevelDispatch.XpackSecurityChangePasswordDispatch <ChangePasswordResponse>(p, d)
     );
 /// <inheritdoc />
 public Task <ChangePasswordResponse> ChangePasswordAsync(IChangePasswordRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IChangePasswordRequest, ChangePasswordResponse>(request, request.RequestParameters, ct);
 /// <inheritdoc />
 public ChangePasswordResponse ChangePassword(IChangePasswordRequest request) =>
 DoRequest <IChangePasswordRequest, ChangePasswordResponse>(request, request.RequestParameters);
		/// <inheritdoc/>
		public Task<IChangePasswordResponse> ChangePasswordAsync(IChangePasswordRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IChangePasswordRequest, ChangePasswordRequestParameters, ChangePasswordResponse, IChangePasswordResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.XpackSecurityChangePasswordDispatchAsync<ChangePasswordResponse>(p, d, c)
			);
Ejemplo n.º 12
0
 /// <inheritdoc/>
 public Task <IChangePasswordResponse> ChangePasswordAsync(IChangePasswordRequest request) =>
 this.Dispatcher.DispatchAsync <IChangePasswordRequest, ChangePasswordRequestParameters, ChangePasswordResponse, IChangePasswordResponse>(
     request,
     (p, d) => this.LowLevelDispatch.XpackSecurityChangePasswordDispatchAsync <ChangePasswordResponse>(p, d)
     );