1 override of CancellationToken
Microsoft.AspNetCore.Identity (1)
AspNetUserManager.cs (1)
48protected override CancellationToken CancellationToken => _cancel;
80 references to CancellationToken
Microsoft.Extensions.Identity.Core (80)
UserManager.cs (80)
508await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false); 513return await Store.CreateAsync(user, CancellationToken).ConfigureAwait(false); 555var result = await Store.DeleteAsync(user, CancellationToken).ConfigureAwait(false); 577return Store.FindByIdAsync(userId, CancellationToken); 593var user = await Store.FindByNameAsync(userName, CancellationToken).ConfigureAwait(false); 605user = await Store.FindByNameAsync(oldKey, CancellationToken).ConfigureAwait(false); 690await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false); 702return await Store.GetUserNameAsync(user, CancellationToken).ConfigureAwait(false); 718await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false); 737return await Store.GetUserIdAsync(user, CancellationToken).ConfigureAwait(false); 805return passwordStore.HasPasswordAsync(user, CancellationToken); 839var hash = await passwordStore.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false); 936var hash = await store.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false); 956var stamp = await securityStore.GetSecurityStampAsync(user, CancellationToken).ConfigureAwait(false); 1054return loginStore.FindByLoginAsync(loginProvider, providerKey, CancellationToken); 1078await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false); 1126await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false); 1142return await loginStore.GetLoginsAsync(user, CancellationToken).ConfigureAwait(false); 1177await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false); 1207await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false); 1249await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false); 1271return await claimStore.GetClaimsAsync(user, CancellationToken).ConfigureAwait(false); 1305if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false)) 1309await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1347if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false)) 1351await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1372if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false)) 1379await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1435if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false)) 1439await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false); 1454return await userRoleStore.GetRolesAsync(user, CancellationToken).ConfigureAwait(false); 1471return await userRoleStore.IsInRoleAsync(user, NormalizeName(role), CancellationToken).ConfigureAwait(false); 1484return await store.GetEmailAsync(user, CancellationToken).ConfigureAwait(false); 1504await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false); 1505await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false); 1532var user = await store.FindByEmailAsync(email, CancellationToken).ConfigureAwait(false); 1544user = await store.FindByEmailAsync(oldKey, CancellationToken).ConfigureAwait(false); 1566await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false); 1617await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false); 1635return await store.GetEmailConfirmedAsync(user, CancellationToken).ConfigureAwait(false); 1688await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false); 1689await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false); 1704return await store.GetPhoneNumberAsync(user, CancellationToken).ConfigureAwait(false); 1724await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false); 1725await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false); 1773await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false); 1774await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false); 1792return store.GetPhoneNumberConfirmedAsync(user, CancellationToken); 2020return await store.GetTwoFactorEnabledAsync(user, CancellationToken).ConfigureAwait(false); 2040await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false); 2065if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false)) 2069var lockoutTime = await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false); 2090await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false); 2112return await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false); 2128return await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false); 2158if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false)) 2163await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false); 2183var count = await store.IncrementAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false); 2190CancellationToken).ConfigureAwait(false); 2191await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false); 2231await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false); 2246return await store.GetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false); 2262return store.GetUsersForClaimAsync(claim, CancellationToken); 2279return store.GetUsersInRoleAsync(NormalizeName(roleName), CancellationToken); 2297return store.GetTokenAsync(user, loginProvider, tokenName, CancellationToken); 2319await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false); 2346await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false); 2366return store.GetAuthenticatorKeyAsync(user, CancellationToken); 2379await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false); 2411await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false); 2530var success = await store.RedeemCodeAsync(user, code, CancellationToken).ConfigureAwait(false); 2549return store.CountCodesAsync(user, CancellationToken); 2580await passkeyStore.AddOrUpdatePasskeyAsync(user, passkey, CancellationToken).ConfigureAwait(false); 2597return passkeyStore.GetPasskeysAsync(user, CancellationToken); 2615return passkeyStore.FindPasskeyAsync(user, credentialId, CancellationToken); 2631return passkeyStore.FindByPasskeyIdAsync(credentialId, CancellationToken); 2665await passkeyStore.RemovePasskeyAsync(user, credentialId, CancellationToken).ConfigureAwait(false); 2741await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false); 2767await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false); 2922return await Store.UpdateAsync(user, CancellationToken).ConfigureAwait(false);