1 override of CancellationToken
Microsoft.AspNetCore.Identity (1)
75 references to CancellationToken
Microsoft.Extensions.Identity.Core (75)
UserManager.cs (75)
472await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false);
477return await Store.CreateAsync(user, CancellationToken).ConfigureAwait(false);
509return Store.DeleteAsync(user, CancellationToken);
522return Store.FindByIdAsync(userId, CancellationToken);
538var user = await Store.FindByNameAsync(userName, CancellationToken).ConfigureAwait(false);
550user = await Store.FindByNameAsync(oldKey, CancellationToken).ConfigureAwait(false);
624await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false);
636return await Store.GetUserNameAsync(user, CancellationToken).ConfigureAwait(false);
650await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false);
663return await Store.GetUserIdAsync(user, CancellationToken).ConfigureAwait(false);
713return passwordStore.HasPasswordAsync(user, CancellationToken);
732var hash = await passwordStore.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
806var hash = await store.GetPasswordHashAsync(user, CancellationToken).ConfigureAwait(false);
824var stamp = await securityStore.GetSecurityStampAsync(user, CancellationToken).ConfigureAwait(false);
910return loginStore.FindByLoginAsync(loginProvider, providerKey, CancellationToken);
932await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false);
959await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false);
975return await loginStore.GetLoginsAsync(user, CancellationToken).ConfigureAwait(false);
1012await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1034await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false);
1072await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1088return await claimStore.GetClaimsAsync(user, CancellationToken).ConfigureAwait(false);
1107if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1111await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1134if (await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1138await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1159if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1163await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1204if (!await userRoleStore.IsInRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false))
1208await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1223return await userRoleStore.GetRolesAsync(user, CancellationToken).ConfigureAwait(false);
1240return await userRoleStore.IsInRoleAsync(user, NormalizeName(role), CancellationToken).ConfigureAwait(false);
1253return await store.GetEmailAsync(user, CancellationToken).ConfigureAwait(false);
1271await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false);
1272await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1293var user = await store.FindByEmailAsync(email, CancellationToken).ConfigureAwait(false);
1305user = await store.FindByEmailAsync(oldKey, CancellationToken).ConfigureAwait(false);
1327await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false);
1363await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1381return await store.GetEmailConfirmedAsync(user, CancellationToken).ConfigureAwait(false);
1419await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false);
1420await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1435return await store.GetPhoneNumberAsync(user, CancellationToken).ConfigureAwait(false);
1453await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1454await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1481await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1482await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1500return store.GetPhoneNumberConfirmedAsync(user, CancellationToken);
1692return await store.GetTwoFactorEnabledAsync(user, CancellationToken).ConfigureAwait(false);
1710await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
1729if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
1733var lockoutTime = await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
1752await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
1768return await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false);
1784return await store.GetLockoutEndDateAsync(user, CancellationToken).ConfigureAwait(false);
1799if (!await store.GetLockoutEnabledAsync(user, CancellationToken).ConfigureAwait(false))
1804await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false);
1822var count = await store.IncrementAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1829CancellationToken).ConfigureAwait(false);
1830await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1849await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1864return await store.GetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
1880return store.GetUsersForClaimAsync(claim, CancellationToken);
1897return store.GetUsersInRoleAsync(NormalizeName(roleName), CancellationToken);
1915return store.GetTokenAsync(user, loginProvider, tokenName, CancellationToken);
1935await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false);
1954await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false);
1968return store.GetAuthenticatorKeyAsync(user, CancellationToken);
1981await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false);
2011await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false);
2109var success = await store.RedeemCodeAsync(user, code, CancellationToken).ConfigureAwait(false);
2128return store.CountCodesAsync(user, CancellationToken);
2203await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false);
2229await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false);
2380return await Store.UpdateAsync(user, CancellationToken).ConfigureAwait(false);