1 override of CancellationToken
Microsoft.AspNetCore.Identity (1)
80 references to CancellationToken
Microsoft.Extensions.Identity.Core (80)
UserManager.cs (80)
487await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false);
492return await Store.CreateAsync(user, CancellationToken).ConfigureAwait(false);
524return Store.DeleteAsync(user, CancellationToken);
537return Store.FindByIdAsync(userId, CancellationToken);
553var user = await Store.FindByNameAsync(userName, CancellationToken).ConfigureAwait(false);
565user = await Store.FindByNameAsync(oldKey, CancellationToken).ConfigureAwait(false);
639await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false);
651return await Store.GetUserNameAsync(user, CancellationToken).ConfigureAwait(false);
665await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false);
678return await Store.GetUserIdAsync(user, CancellationToken).ConfigureAwait(false);
728return passwordStore.HasPasswordAsync(user, CancellationToken);
747var hash = await passwordStore.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
821var hash = await store.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
839var stamp = await securityStore.GetSecurityStampAsync(user, CancellationToken).ConfigureAwait(false);
925return loginStore.FindByLoginAsync(loginProvider, providerKey, CancellationToken);
947await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false);
974await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false);
990return await loginStore.GetLoginsAsync(user, CancellationToken).ConfigureAwait(false);
1027await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1049await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false);
1087await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1103return await claimStore.GetClaimsAsync(user, CancellationToken).ConfigureAwait(false);
1122if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1126await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1149if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1153await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1174if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1178await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1219if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1223await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1238return await userRoleStore.GetRolesAsync(user, CancellationToken).ConfigureAwait(false);
1255return await userRoleStore.IsInRoleAsync(user, NormalizeName(role), CancellationToken).ConfigureAwait(false);
1268return await store.GetEmailAsync(user, CancellationToken).ConfigureAwait(false);
1286await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false);
1287await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1308var user = await store.FindByEmailAsync(email, CancellationToken).ConfigureAwait(false);
1320user = await store.FindByEmailAsync(oldKey, CancellationToken).ConfigureAwait(false);
1342await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false);
1378await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1396return await store.GetEmailConfirmedAsync(user, CancellationToken).ConfigureAwait(false);
1434await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false);
1435await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1450return await store.GetPhoneNumberAsync(user, CancellationToken).ConfigureAwait(false);
1468await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1469await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1496await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1497await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1515return store.GetPhoneNumberConfirmedAsync(user, CancellationToken);
1707return await store.GetTwoFactorEnabledAsync(user, CancellationToken).ConfigureAwait(false);
1725await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
1744if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
1748var lockoutTime = await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
1767await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
1783return await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false);
1799return await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
1814if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
1819await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false);
1837var count = await store.IncrementAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1844CancellationToken).ConfigureAwait(false);
1845await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1864await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1879return await store.GetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1895return store.GetUsersForClaimAsync(claim, CancellationToken);
1912return store.GetUsersInRoleAsync(NormalizeName(roleName), CancellationToken);
1930return store.GetTokenAsync(user, loginProvider, tokenName, CancellationToken);
1950await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false);
1969await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false);
1983return store.GetAuthenticatorKeyAsync(user, CancellationToken);
1996await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false);
2026await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false);
2124var success = await store.RedeemCodeAsync(user, code, CancellationToken).ConfigureAwait(false);
2143return store.CountCodesAsync(user, CancellationToken);
2159await passkeyStore.SetPasskeyAsync(user, passkey, CancellationToken).ConfigureAwait(false);
2176return passkeyStore.GetPasskeysAsync(user, CancellationToken);
2194return passkeyStore.FindPasskeyAsync(user, credentialId, CancellationToken);
2210return passkeyStore.FindByPasskeyIdAsync(credentialId, CancellationToken);
2229await passkeyStore.RemovePasskeyAsync(user, credentialId, CancellationToken).ConfigureAwait(false);
2305await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false);
2331await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false);
2482return await Store.UpdateAsync(user, CancellationToken).ConfigureAwait(false);