1 override of CancellationToken
Microsoft.AspNetCore.Identity (1)
80 references to CancellationToken
Microsoft.Extensions.Identity.Core (80)
UserManager.cs (80)
511await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false);
516return await Store.CreateAsync(user, CancellationToken).ConfigureAwait(false);
562var result = await Store.DeleteAsync(user, CancellationToken).ConfigureAwait(false);
584return Store.FindByIdAsync(userId, CancellationToken);
600var user = await Store.FindByNameAsync(userName, CancellationToken).ConfigureAwait(false);
612user = await Store.FindByNameAsync(oldKey, CancellationToken).ConfigureAwait(false);
699await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false);
711return await Store.GetUserNameAsync(user, CancellationToken).ConfigureAwait(false);
728await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false);
747return await Store.GetUserIdAsync(user, CancellationToken).ConfigureAwait(false);
816return passwordStore.HasPasswordAsync(user, CancellationToken);
851var hash = await passwordStore.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
950var hash = await store.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
970var stamp = await securityStore.GetSecurityStampAsync(user, CancellationToken).ConfigureAwait(false);
1071return loginStore.FindByLoginAsync(loginProvider, providerKey, CancellationToken);
1096await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false);
1145await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false);
1161return await loginStore.GetLoginsAsync(user, CancellationToken).ConfigureAwait(false);
1197await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1228await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false);
1271await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1293return await claimStore.GetClaimsAsync(user, CancellationToken).ConfigureAwait(false);
1328if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1332await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1371if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1375await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1398if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1405await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1462if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1466await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1481return await userRoleStore.GetRolesAsync(user, CancellationToken).ConfigureAwait(false);
1498return await userRoleStore.IsInRoleAsync(user, NormalizeName(role), CancellationToken).ConfigureAwait(false);
1511return await store.GetEmailAsync(user, CancellationToken).ConfigureAwait(false);
1532await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false);
1533await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1560var user = await store.FindByEmailAsync(email, CancellationToken).ConfigureAwait(false);
1572user = await store.FindByEmailAsync(oldKey, CancellationToken).ConfigureAwait(false);
1594await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false);
1646await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1664return await store.GetEmailConfirmedAsync(user, CancellationToken).ConfigureAwait(false);
1716await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false);
1717await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1732return await store.GetPhoneNumberAsync(user, CancellationToken).ConfigureAwait(false);
1753await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1754await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1803await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1804await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1822return store.GetPhoneNumberConfirmedAsync(user, CancellationToken);
2050return await store.GetTwoFactorEnabledAsync(user, CancellationToken).ConfigureAwait(false);
2071await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
2096if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
2100var lockoutTime = await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
2122await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
2144return await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false);
2160return await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
2191if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
2196await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false);
2217var count = await store.IncrementAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2224CancellationToken).ConfigureAwait(false);
2225await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2266await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2281return await store.GetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2297return store.GetUsersForClaimAsync(claim, CancellationToken);
2314return store.GetUsersInRoleAsync(NormalizeName(roleName), CancellationToken);
2332return store.GetTokenAsync(user, loginProvider, tokenName, CancellationToken);
2355await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false);
2383await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false);
2403return store.GetAuthenticatorKeyAsync(user, CancellationToken);
2419await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false);
2458await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false);
2578var success = await store.RedeemCodeAsync(user, code, CancellationToken).ConfigureAwait(false);
2597return store.CountCodesAsync(user, CancellationToken);
2629await passkeyStore.AddOrUpdatePasskeyAsync(user, passkey, CancellationToken).ConfigureAwait(false);
2646return passkeyStore.GetPasskeysAsync(user, CancellationToken);
2664return passkeyStore.FindPasskeyAsync(user, credentialId, CancellationToken);
2680return passkeyStore.FindByPasskeyIdAsync(credentialId, CancellationToken);
2715await passkeyStore.RemovePasskeyAsync(user, credentialId, CancellationToken).ConfigureAwait(false);
2791await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false);
2817await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false);
2972return await Store.UpdateAsync(user, CancellationToken).ConfigureAwait(false);