/// <summary> /// Changes the password for the currently logged in user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='client'> /// Client short name /// </param> /// <param name='id'> /// Id for the account /// </param> /// <param name='request'> /// Confirmation password and new password /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostChangePasswordAsync(this IAccounts operations, string client, string id, AccountPasswordChangeRequest request, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PostChangePasswordWithHttpMessagesAsync(client, id, request, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Changes the password for the currently logged in user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='client'> /// Client short name /// </param> /// <param name='id'> /// Id for the account /// </param> /// <param name='request'> /// Confirmation password and new password /// </param> public static void PostChangePassword(this IAccounts operations, string client, string id, AccountPasswordChangeRequest request) { operations.PostChangePasswordAsync(client, id, request).GetAwaiter().GetResult(); }