26 references to GetEmailAsync
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
392await _emailSender.SendEmailAsync(await _userManager.GetEmailAsync(user), "Security Code", message);
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
377var email = await userManager.GetEmailAsync(user); 460Email = await userManager.GetEmailAsync(user) ?? throw new NotSupportedException("Users must have an email."),
Microsoft.AspNetCore.Identity.Specification.Tests (7)
UserManagerSpecificationTests.cs (7)
859IdentityResultAssert.IsSuccess(await manager.SetEmailAsync(user2, await manager.GetEmailAsync(user))); 1508Assert.Equal(await manager.GetEmailAsync(user), newEmail); 1531Assert.Equal(await manager.GetEmailAsync(user), newEmail); 1557Assert.Equal(await manager.GetEmailAsync(user), newEmail); 1581Assert.Equal("another@email.com", await manager.GetEmailAsync(user)); 1603Assert.Equal(await manager.GetEmailAsync(user), oldEmail); 1627Assert.Equal(await manager.GetEmailAsync(user), oldEmail);
Microsoft.AspNetCore.Identity.Test (3)
UserClaimsPrincipalFactoryTest.cs (1)
53userManager.Setup(m => m.GetEmailAsync(user)).ReturnsAsync(user.Email);
UserManagerTest.cs (2)
693await Assert.ThrowsAsync<NotSupportedException>(() => manager.GetEmailAsync(null)); 1103async () => await manager.GetEmailAsync(null));
Microsoft.AspNetCore.Identity.UI (8)
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (3)
99var email = await _userManager.GetEmailAsync(user); 136var email = await _userManager.GetEmailAsync(user); 172var email = await _userManager.GetEmailAsync(user);
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
173var email = await _userManager.GetEmailAsync(user);
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (3)
99var email = await _userManager.GetEmailAsync(user); 136var email = await _userManager.GetEmailAsync(user); 172var email = await _userManager.GetEmailAsync(user);
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
173var email = await _userManager.GetEmailAsync(user);
Microsoft.Extensions.Identity.Core (5)
EmailTokenProvider.cs (2)
23var email = await manager.GetEmailAsync(user).ConfigureAwait(false); 38var email = await manager.GetEmailAsync(user).ConfigureAwait(false);
UserClaimsPrincipalFactory.cs (1)
82var email = await UserManager.GetEmailAsync(user).ConfigureAwait(false);
UserManager.cs (1)
1326var email = await GetEmailAsync(user).ConfigureAwait(false);
UserValidator.cs (1)
84var email = await manager.GetEmailAsync(user).ConfigureAwait(false);