1 override of CancellationToken
Microsoft.AspNetCore.Identity (1)
80 references to CancellationToken
Microsoft.Extensions.Identity.Core (80)
UserManager.cs (80)
513await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false);
518return await Store.CreateAsync(user, CancellationToken).ConfigureAwait(false);
564var result = await Store.DeleteAsync(user, CancellationToken).ConfigureAwait(false);
586return Store.FindByIdAsync(userId, CancellationToken);
602var user = await Store.FindByNameAsync(userName, CancellationToken).ConfigureAwait(false);
614user = await Store.FindByNameAsync(oldKey, CancellationToken).ConfigureAwait(false);
701await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false);
713return await Store.GetUserNameAsync(user, CancellationToken).ConfigureAwait(false);
730await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false);
749return await Store.GetUserIdAsync(user, CancellationToken).ConfigureAwait(false);
818return passwordStore.HasPasswordAsync(user, CancellationToken);
853var hash = await passwordStore.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
952var hash = await store.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
972var stamp = await securityStore.GetSecurityStampAsync(user, CancellationToken).ConfigureAwait(false);
1073return loginStore.FindByLoginAsync(loginProvider, providerKey, CancellationToken);
1098await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false);
1147await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false);
1163return await loginStore.GetLoginsAsync(user, CancellationToken).ConfigureAwait(false);
1199await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1230await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false);
1273await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1295return await claimStore.GetClaimsAsync(user, CancellationToken).ConfigureAwait(false);
1330if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1334await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1373if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1377await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1400if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1407await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1464if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1468await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1483return await userRoleStore.GetRolesAsync(user, CancellationToken).ConfigureAwait(false);
1500return await userRoleStore.IsInRoleAsync(user, NormalizeName(role), CancellationToken).ConfigureAwait(false);
1513return await store.GetEmailAsync(user, CancellationToken).ConfigureAwait(false);
1534await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false);
1535await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1562var user = await store.FindByEmailAsync(email, CancellationToken).ConfigureAwait(false);
1574user = await store.FindByEmailAsync(oldKey, CancellationToken).ConfigureAwait(false);
1596await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false);
1648await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1666return await store.GetEmailConfirmedAsync(user, CancellationToken).ConfigureAwait(false);
1718await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false);
1719await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1734return await store.GetPhoneNumberAsync(user, CancellationToken).ConfigureAwait(false);
1755await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1756await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1805await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1806await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1824return store.GetPhoneNumberConfirmedAsync(user, CancellationToken);
2052return await store.GetTwoFactorEnabledAsync(user, CancellationToken).ConfigureAwait(false);
2073await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
2098if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
2102var lockoutTime = await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
2124await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
2146return await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false);
2162return await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
2193if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
2198await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false);
2219var count = await store.IncrementAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2226CancellationToken).ConfigureAwait(false);
2227await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2268await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2283return await store.GetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2299return store.GetUsersForClaimAsync(claim, CancellationToken);
2316return store.GetUsersInRoleAsync(NormalizeName(roleName), CancellationToken);
2334return store.GetTokenAsync(user, loginProvider, tokenName, CancellationToken);
2357await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false);
2385await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false);
2405return store.GetAuthenticatorKeyAsync(user, CancellationToken);
2421await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false);
2460await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false);
2580var success = await store.RedeemCodeAsync(user, code, CancellationToken).ConfigureAwait(false);
2599return store.CountCodesAsync(user, CancellationToken);
2631await passkeyStore.AddOrUpdatePasskeyAsync(user, passkey, CancellationToken).ConfigureAwait(false);
2648return passkeyStore.GetPasskeysAsync(user, CancellationToken);
2666return passkeyStore.FindPasskeyAsync(user, credentialId, CancellationToken);
2682return passkeyStore.FindByPasskeyIdAsync(credentialId, CancellationToken);
2717await passkeyStore.RemovePasskeyAsync(user, credentialId, CancellationToken).ConfigureAwait(false);
2793await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false);
2819await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false);
2974return await Store.UpdateAsync(user, CancellationToken).ConfigureAwait(false);