1 override of CancellationToken
Microsoft.AspNetCore.Identity (1)
75 references to CancellationToken
Microsoft.Extensions.Identity.Core (75)
UserManager.cs (75)
468await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false);
473return await Store.CreateAsync(user, CancellationToken).ConfigureAwait(false);
505return Store.DeleteAsync(user, CancellationToken);
518return Store.FindByIdAsync(userId, CancellationToken);
534var user = await Store.FindByNameAsync(userName, CancellationToken).ConfigureAwait(false);
546user = await Store.FindByNameAsync(oldKey, CancellationToken).ConfigureAwait(false);
620await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false);
632return await Store.GetUserNameAsync(user, CancellationToken).ConfigureAwait(false);
646await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false);
659return await Store.GetUserIdAsync(user, CancellationToken).ConfigureAwait(false);
709return passwordStore.HasPasswordAsync(user, CancellationToken);
728var hash = await passwordStore.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
802var hash = await store.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
820var stamp = await securityStore.GetSecurityStampAsync(user, CancellationToken).ConfigureAwait(false);
906return loginStore.FindByLoginAsync(loginProvider, providerKey, CancellationToken);
928await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false);
955await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false);
971return await loginStore.GetLoginsAsync(user, CancellationToken).ConfigureAwait(false);
1008await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1030await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false);
1068await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1084return await claimStore.GetClaimsAsync(user, CancellationToken).ConfigureAwait(false);
1103if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1107await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1130if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1134await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1155if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1159await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1194if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1198await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1213return await userRoleStore.GetRolesAsync(user, CancellationToken).ConfigureAwait(false);
1230return await userRoleStore.IsInRoleAsync(user, NormalizeName(role), CancellationToken).ConfigureAwait(false);
1243return await store.GetEmailAsync(user, CancellationToken).ConfigureAwait(false);
1261await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false);
1262await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1283var user = await store.FindByEmailAsync(email, CancellationToken).ConfigureAwait(false);
1295user = await store.FindByEmailAsync(oldKey, CancellationToken).ConfigureAwait(false);
1317await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false);
1353await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1371return await store.GetEmailConfirmedAsync(user, CancellationToken).ConfigureAwait(false);
1409await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false);
1410await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1425return await store.GetPhoneNumberAsync(user, CancellationToken).ConfigureAwait(false);
1443await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1444await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1471await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1472await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1490return store.GetPhoneNumberConfirmedAsync(user, CancellationToken);
1681return await store.GetTwoFactorEnabledAsync(user, CancellationToken).ConfigureAwait(false);
1699await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
1718if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
1722var lockoutTime = await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
1741await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
1757return await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false);
1773return await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
1788if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
1793await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false);
1811var count = await store.IncrementAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1818CancellationToken).ConfigureAwait(false);
1819await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1838await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1853return await store.GetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1869return store.GetUsersForClaimAsync(claim, CancellationToken);
1886return store.GetUsersInRoleAsync(NormalizeName(roleName), CancellationToken);
1904return store.GetTokenAsync(user, loginProvider, tokenName, CancellationToken);
1924await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false);
1943await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false);
1957return store.GetAuthenticatorKeyAsync(user, CancellationToken);
1970await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false);
2000await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false);
2098var success = await store.RedeemCodeAsync(user, code, CancellationToken).ConfigureAwait(false);
2117return store.CountCodesAsync(user, CancellationToken);
2192await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false);
2218await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false);
2363return await Store.UpdateAsync(user, CancellationToken).ConfigureAwait(false);