3 instantiations of IdentityResult
Microsoft.Extensions.Identity.Core (3)
IdentityResult.cs (3)
15private static readonly IdentityResult _success = new IdentityResult { Succeeded = true }; 44var result = new IdentityResult { Succeeded = false }; 54var result = new IdentityResult { Succeeded = false };
254 references to IdentityResult
Microsoft.AspNetCore.Identity (35)
IdentityApiEndpointRouteBuilderExtensions.cs (9)
73return CreateValidationProblem(IdentityResult.Failed(userManager.ErrorDescriber.InvalidEmail(email))); 79var result = await userManager.CreateAsync(user, registration.Password); 161IdentityResult result; 236return CreateValidationProblem(IdentityResult.Failed(userManager.ErrorDescriber.InvalidToken())); 239IdentityResult result; 247result = IdentityResult.Failed(userManager.ErrorDescriber.InvalidToken()); 359return CreateValidationProblem(IdentityResult.Failed(userManager.ErrorDescriber.InvalidEmail(infoRequest.NewEmail))); 370var changePasswordResult = await userManager.ChangePasswordAsync(user, infoRequest.OldPassword, infoRequest.NewPassword); 429private static ValidationProblem CreateValidationProblem(IdentityResult result)
SignInManager.cs (26)
485var resetLockoutResult = await ResetLockoutWithResult(user); 502var incrementLockoutResult = await UserManager.AccessFailedAsync(user) ?? IdentityResult.Success; 680var setPasskeyResult = await UserManager.AddOrUpdatePasskeyAsync(assertionResult.User, assertionResult.Passkey); 829var result = await UserManager.RedeemTwoFactorRecoveryCodeAsync(twoFactorInfo.User, recoveryCode); 841var resetLockoutResult = await ResetLockoutWithResult(user); 925var incrementLockoutResult = await UserManager.AccessFailedAsync(user) ?? IdentityResult.Success; 989var incrementLockoutResult = await UserManager.AccessFailedAsync(user) ?? IdentityResult.Success; 1127/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the operation.</returns> 1128public virtual async Task<IdentityResult> UpdateExternalAuthenticationTokensAsync(ExternalLoginInfo externalLogin) 1137return IdentityResult.Failed(); 1142var result = await UserManager.SetAuthenticationTokenAsync(user, externalLogin.LoginProvider, token.Name, token.Value); 1150return IdentityResult.Success; 1337/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the operation.</returns> 1343var result = await UserManager.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success; 1352private async Task<IdentityResult> ResetLockoutWithResult(TUser user) 1359return IdentityResult.Success; 1362return await UserManager.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success; 1369if (resetLockoutTask is Task<IdentityResult> resultTask) 1371return await resultTask ?? IdentityResult.Success; 1375return IdentityResult.Success; 1385internal IdentityResultException(IdentityResult result) : base() 1390internal IdentityResult IdentityResult { get; set; }
Microsoft.Extensions.Identity.Core (207)
DefaultUserConfirmation.cs (1)
19/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the confirmation operation.</returns>
IdentityResult.cs (12)
15private static readonly IdentityResult _success = new IdentityResult { Succeeded = true }; 32/// Returns an <see cref="IdentityResult"/> indicating a successful identity operation. 34/// <returns>An <see cref="IdentityResult"/> indicating a successful operation.</returns> 35public static IdentityResult Success => _success; 38/// Creates an <see cref="IdentityResult"/> indicating a failed identity operation, with a list of <paramref name="errors"/> if applicable. 41/// <returns>An <see cref="IdentityResult"/> indicating a failed identity operation, with a list of <paramref name="errors"/> if applicable.</returns> 42public static IdentityResult Failed(params IdentityError[] errors) 44var result = new IdentityResult { Succeeded = false }; 52internal static IdentityResult Failed(List<IdentityError>? errors) 54var result = new IdentityResult { Succeeded = false }; 63/// Converts the value of the current <see cref="IdentityResult"/> object to its equivalent string representation. 65/// <returns>A string representation of the current <see cref="IdentityResult"/> object.</returns>
IPasswordValidator.cs (1)
21Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string? password);
IRoleStore.cs (6)
21/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous query.</returns> 22Task<IdentityResult> CreateAsync(TRole role, CancellationToken cancellationToken); 29/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous query.</returns> 30Task<IdentityResult> UpdateAsync(TRole role, CancellationToken cancellationToken); 37/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous query.</returns> 38Task<IdentityResult> DeleteAsync(TRole role, CancellationToken cancellationToken);
IRoleValidator.cs (2)
19/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous validation.</returns> 20Task<IdentityResult> ValidateAsync(RoleManager<TRole> manager, TRole role);
IUserStore.cs (6)
63/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the creation operation.</returns> 64Task<IdentityResult> CreateAsync(TUser user, CancellationToken cancellationToken); 71/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the update operation.</returns> 72Task<IdentityResult> UpdateAsync(TUser user, CancellationToken cancellationToken); 79/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the delete operation.</returns> 80Task<IdentityResult> DeleteAsync(TUser user, CancellationToken cancellationToken);
IUserValidator.cs (2)
19/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the validation operation.</returns> 20Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user);
PasswordValidator.cs (3)
40public virtual Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string? password) 78? IdentityResult.Failed(errors) 79: IdentityResult.Success);
RoleManager.cs (21)
155public virtual async Task<IdentityResult> CreateAsync(TRole role) 159var result = await ValidateRoleAsync(role).ConfigureAwait(false); 187/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> for the update. 189public virtual Task<IdentityResult> UpdateAsync(TRole role) 202/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> for the delete. 204public virtual Task<IdentityResult> DeleteAsync(TRole role) 272/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 275public virtual async Task<IdentityResult> SetRoleNameAsync(TRole role, string? name) 281return IdentityResult.Success; 320/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 323public virtual async Task<IdentityResult> AddClaimAsync(TRole role, Claim claim) 340/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 343public virtual async Task<IdentityResult> RemoveClaimAsync(TRole role, Claim claim) 392/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is 396/// <returns>A <see cref="IdentityResult"/> representing whether validation was successful.</returns> 397protected virtual async Task<IdentityResult> ValidateRoleAsync(TRole role) 402var result = await v.ValidateAsync(this, role).ConfigureAwait(false); 415return IdentityResult.Failed(errors); 417return IdentityResult.Success; 425protected virtual async Task<IdentityResult> UpdateRoleAsync(TRole role) 427var result = await ValidateRoleAsync(role).ConfigureAwait(false);
RoleValidator.cs (4)
33/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous validation.</returns> 34public virtual async Task<IdentityResult> ValidateAsync(RoleManager<TRole> manager, TRole role) 41return IdentityResult.Failed(errors); 43return IdentityResult.Success;
UserManager.cs (140)
482/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 485public virtual async Task<IdentityResult> CreateAsync(TUser user) 491var result = await CreateCoreAsync(user).ConfigureAwait(false); 502private async Task<IdentityResult> CreateCoreAsync(TUser user) 506var validateUserResult = await ValidateUserAsync(user).ConfigureAwait(false); 526/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 529public virtual async Task<IdentityResult> UpdateAsync(TUser user) 552/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 555public virtual async Task<IdentityResult> DeleteAsync(TUser user) 564var result = await Store.DeleteAsync(user, CancellationToken).ConfigureAwait(false); 632/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 635public virtual async Task<IdentityResult> CreateAsync(TUser user, string password) 645var result = await UpdatePasswordHash(passwordStore, user, password).ConfigureAwait(false); 722public virtual async Task<IdentityResult> SetUserNameAsync(TUser user, string? userName) 828/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 831public virtual async Task<IdentityResult> AddPasswordAsync(TUser user, string password) 836var result = await AddPasswordCoreAsync(user, password).ConfigureAwait(false); 847private async Task<IdentityResult> AddPasswordCoreAsync(TUser user, string password) 857return IdentityResult.Failed(ErrorDescriber.UserAlreadyHasPassword()); 859var result = await UpdatePasswordHash(passwordStore, user, password).ConfigureAwait(false); 875/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 878public virtual async Task<IdentityResult> ChangePasswordAsync(TUser user, string currentPassword, string newPassword) 883var result = await ChangePasswordCoreAsync(user, currentPassword, newPassword).ConfigureAwait(false); 894private async Task<IdentityResult> ChangePasswordCoreAsync(TUser user, string currentPassword, string newPassword) 902var updateResult = await UpdatePasswordHash(passwordStore, user, newPassword).ConfigureAwait(false); 910return IdentityResult.Failed(ErrorDescriber.PasswordMismatch()); 918/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 921public virtual async Task<IdentityResult> RemovePasswordAsync(TUser user) 986/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 992public virtual async Task<IdentityResult> UpdateSecurityStampAsync(TUser user) 1032/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1035public virtual async Task<IdentityResult> ResetPasswordAsync(TUser user, string token, string newPassword) 1045var failureResult = IdentityResult.Failed(ErrorDescriber.InvalidToken()); 1050var result = await UpdatePasswordHash(user, newPassword, validatePassword: true).ConfigureAwait(false); 1084/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1087public virtual async Task<IdentityResult> RemoveLoginAsync(TUser user, string loginProvider, string providerKey) 1115/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1118public virtual async Task<IdentityResult> AddLoginAsync(TUser user, UserLoginInfo login) 1123var result = await AddLoginCoreAsync(user, login).ConfigureAwait(false); 1134private async Task<IdentityResult> AddLoginCoreAsync(TUser user, UserLoginInfo login) 1145return IdentityResult.Failed(ErrorDescriber.LoginAlreadyAssociated()); 1172/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1175public virtual Task<IdentityResult> AddClaimAsync(TUser user, Claim claim) 1186/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1189public virtual async Task<IdentityResult> AddClaimsAsync(TUser user, IEnumerable<Claim> claims) 1216/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1219public virtual async Task<IdentityResult> ReplaceClaimAsync(TUser user, Claim claim, Claim newClaim) 1246/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1249public virtual Task<IdentityResult> RemoveClaimAsync(TUser user, Claim claim) 1260/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1263public virtual async Task<IdentityResult> RemoveClaimsAsync(TUser user, IEnumerable<Claim> claims) 1304/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1307public virtual async Task<IdentityResult> AddToRoleAsync(TUser user, string role) 1312var result = await AddToRoleCoreAsync(user, role).ConfigureAwait(false); 1323private async Task<IdentityResult> AddToRoleCoreAsync(TUser user, string role) 1344/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1347public virtual async Task<IdentityResult> AddToRolesAsync(TUser user, IEnumerable<string> roles) 1352var result = await AddToRolesCoreAsync(user, roles).ConfigureAwait(false); 1363private async Task<IdentityResult> AddToRolesCoreAsync(TUser user, IEnumerable<string> roles) 1388/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1391public virtual async Task<IdentityResult> RemoveFromRoleAsync(TUser user, string role) 1402var failureResult = UserNotInRoleError(role); 1411private IdentityResult UserAlreadyInRoleError(string role) 1417return IdentityResult.Failed(ErrorDescriber.UserAlreadyInRole(role)); 1420private IdentityResult UserNotInRoleError(string role) 1426return IdentityResult.Failed(ErrorDescriber.UserNotInRole(role)); 1435/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1438public virtual async Task<IdentityResult> RemoveFromRolesAsync(TUser user, IEnumerable<string> roles) 1443var result = await RemoveFromRolesCoreAsync(user, roles).ConfigureAwait(false); 1454private async Task<IdentityResult> RemoveFromRolesCoreAsync(TUser user, IEnumerable<string> roles) 1522/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1525public virtual async Task<IdentityResult> SetEmailAsync(TUser user, string? email) 1619/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1622public virtual async Task<IdentityResult> ConfirmEmailAsync(TUser user, string token) 1627var result = await ConfirmEmailCoreAsync(user, token).ConfigureAwait(false); 1638private async Task<IdentityResult> ConfirmEmailCoreAsync(TUser user, string token) 1646return IdentityResult.Failed(ErrorDescriber.InvalidToken()); 1690/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1693public virtual async Task<IdentityResult> ChangeEmailAsync(TUser user, string newEmail, string token) 1707private async Task<IdentityResult> ChangeEmailCoreAsync(TUser user, string newEmail, string token, long startTimestamp) 1715return IdentityResult.Failed(ErrorDescriber.InvalidToken()); 1743/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1746public virtual async Task<IdentityResult> SetPhoneNumberAsync(TUser user, string? phoneNumber) 1775/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 1778public virtual async Task<IdentityResult> ChangePhoneNumberAsync(TUser user, string phoneNumber, string token) 1783var result = await ChangePhoneNumberCoreAsync(user, phoneNumber, token).ConfigureAwait(false); 1794private async Task<IdentityResult> ChangePhoneNumberCoreAsync(TUser user, string phoneNumber, string token) 1803return IdentityResult.Failed(ErrorDescriber.InvalidToken()); 2062/// The <see cref="Task"/> that represents the asynchronous operation, the <see cref="IdentityResult"/> of the operation 2064public virtual async Task<IdentityResult> SetTwoFactorEnabledAsync(TUser user, bool enabled) 2113/// The <see cref="Task"/> that represents the asynchronous operation, the <see cref="IdentityResult"/> of the operation 2115public virtual async Task<IdentityResult> SetLockoutEnabledAsync(TUser user, bool enabled) 2170/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the operation.</returns> 2171public virtual async Task<IdentityResult> SetLockoutEndDateAsync(TUser user, DateTimeOffset? lockoutEnd) 2176var result = await SetLockoutEndDateCoreAsync(user, lockoutEnd).ConfigureAwait(false); 2187private async Task<IdentityResult> SetLockoutEndDateCoreAsync(TUser user, DateTimeOffset? lockoutEnd) 2196return IdentityResult.Failed(ErrorDescriber.UserLockoutNotEnabled()); 2208/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the operation.</returns> 2209public virtual async Task<IdentityResult> AccessFailedAsync(TUser user) 2241/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the operation.</returns> 2242public virtual async Task<IdentityResult> ResetAccessFailedCountAsync(TUser user) 2247var result = await ResetAccessFailedCountCoreAsync(user).ConfigureAwait(false); 2258private async Task<IdentityResult> ResetAccessFailedCountCoreAsync(TUser user) 2266return IdentityResult.Success; 2345public virtual async Task<IdentityResult> SetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName, string? tokenValue) 2374public virtual async Task<IdentityResult> RemoveAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) 2413public virtual async Task<IdentityResult> ResetAuthenticatorKeyAsync(TUser user) 2461var update = await UpdateUserAndRecordMetricAsync(user, UserUpdateType.GenerateNewTwoFactorRecoveryCodes, startTimestamp).ConfigureAwait(false); 2558public virtual async Task<IdentityResult> RedeemTwoFactorRecoveryCodeAsync(TUser user, string code) 2563var result = await RedeemTwoFactorRecoveryCodeCoreAsync(user, code).ConfigureAwait(false); 2574private async Task<IdentityResult> RedeemTwoFactorRecoveryCodeCoreAsync(TUser user, string code) 2585return IdentityResult.Failed(ErrorDescriber.RecoveryCodeRedemptionFailed()); 2608public virtual async Task<IdentityResult> AddOrUpdatePasskeyAsync(TUser user, UserPasskeyInfo passkey) 2613var result = await AddOrUpdatePasskeyCoreAsync(user, passkey).ConfigureAwait(false); 2624private async Task<IdentityResult> AddOrUpdatePasskeyCoreAsync(TUser user, UserPasskeyInfo passkey) 2691/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> 2694public virtual async Task<IdentityResult> RemovePasskeyAsync(TUser user, byte[] credentialId) 2699var result = await RemovePasskeyCoreAsync(user, credentialId).ConfigureAwait(false); 2710private async Task<IdentityResult> RemovePasskeyCoreAsync(TUser user, byte[] credentialId) 2817protected virtual Task<IdentityResult> UpdatePasswordHash(TUser user, string newPassword, bool validatePassword) 2820private async Task<IdentityResult> UpdatePasswordHash(IUserPasswordStore<TUser> passwordStore, 2825var validate = await ValidatePasswordAsync(user, newPassword).ConfigureAwait(false); 2834return IdentityResult.Success; 2897/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is 2901/// <returns>A <see cref="IdentityResult"/> representing whether validation was successful.</returns> 2902protected async Task<IdentityResult> ValidateUserAsync(TUser user) 2917var result = await v.ValidateAsync(this, user).ConfigureAwait(false); 2930return IdentityResult.Failed(errors); 2932return IdentityResult.Success; 2936/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is 2941/// <returns>A <see cref="IdentityResult"/> representing whether validation was successful.</returns> 2942protected async Task<IdentityResult> ValidatePasswordAsync(TUser user, string? password) 2948var result = await v.ValidateAsync(this, user, password).ConfigureAwait(false); 2966return IdentityResult.Failed(errors); 2968return IdentityResult.Success; 2976protected virtual async Task<IdentityResult> UpdateUserAsync(TUser user) 2980var result = await ValidateUserAsync(user).ConfigureAwait(false); 2990private async Task<IdentityResult> UpdateUserAndRecordMetricAsync(TUser user, UserUpdateType updateType, long startTimestamp) 2992var result = await UpdateUserAsync(user).ConfigureAwait(false);
UserManagerMetrics.cs (5)
72internal void CreateUser(string userType, IdentityResult? result, long startTimestamp, Exception? exception = null) 90internal void UpdateUser(string userType, IdentityResult? result, UserUpdateType updateType, long startTimestamp, Exception? exception = null) 109internal void DeleteUser(string userType, IdentityResult? result, long startTimestamp, Exception? exception = null) 214private static void AddIdentityResultTags(ref TagList tags, IdentityResult? result) 228private static void AddErrorTag(ref TagList tags, Exception? exception, IdentityResult? result = null)
UserValidator.cs (4)
39/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the validation operation.</returns> 40public virtual async Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user) 49return errors?.Count > 0 ? IdentityResult.Failed(errors) : IdentityResult.Success;
Microsoft.Extensions.Identity.Stores (12)
RoleStoreBase.cs (6)
54/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous query.</returns> 55public abstract Task<IdentityResult> CreateAsync(TRole role, CancellationToken cancellationToken = default(CancellationToken)); 62/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous query.</returns> 63public abstract Task<IdentityResult> UpdateAsync(TRole role, CancellationToken cancellationToken = default(CancellationToken)); 70/// <returns>A <see cref="Task{TResult}"/> that represents the <see cref="IdentityResult"/> of the asynchronous query.</returns> 71public abstract Task<IdentityResult> DeleteAsync(TRole role, CancellationToken cancellationToken = default(CancellationToken));
UserStoreBase.cs (6)
189/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the creation operation.</returns> 190public abstract Task<IdentityResult> CreateAsync(TUser user, CancellationToken cancellationToken = default(CancellationToken)); 197/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the update operation.</returns> 198public abstract Task<IdentityResult> UpdateAsync(TUser user, CancellationToken cancellationToken = default(CancellationToken)); 205/// <returns>The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="IdentityResult"/> of the update operation.</returns> 206public abstract Task<IdentityResult> DeleteAsync(TUser user, CancellationToken cancellationToken = default(CancellationToken));