17 references to GetPhoneNumberAsync
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
396await _smsSender.SendSmsAsync(await _userManager.GetPhoneNumberAsync(user), message);
Controllers\ManageController.cs (1)
54PhoneNumber = await _userManager.GetPhoneNumberAsync(user),
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreEncryptPersonalDataTest.cs (1)
95Assert.Equal("123-456-7890", await manager.GetPhoneNumberAsync(user));
Microsoft.AspNetCore.Identity.Specification.Tests (6)
UserManagerSpecificationTests.cs (6)
1354Assert.Equal("123-456-7890", await manager.GetPhoneNumberAsync(user)); 1356Assert.Equal("111-111-1111", await manager.GetPhoneNumberAsync(user)); 1375Assert.Equal("111-111-1111", await manager.GetPhoneNumberAsync(user)); 1409Assert.Equal("123-456-7890", await manager.GetPhoneNumberAsync(user)); 1441Assert.Equal("111-111-1111", await manager.GetPhoneNumberAsync(user)); 1461Assert.Equal("123-456-7890", await manager.GetPhoneNumberAsync(user));
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
705await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetPhoneNumberAsync(null)); 1113async () => await manager.GetPhoneNumberAsync(null));
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (2)
81var phoneNumber = await _userManager.GetPhoneNumberAsync(user); 117var phoneNumber = await _userManager.GetPhoneNumberAsync(user);
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (2)
81var phoneNumber = await _userManager.GetPhoneNumberAsync(user); 117var phoneNumber = await _userManager.GetPhoneNumberAsync(user);
Microsoft.Extensions.Identity.Core (2)
PhoneNumberTokenProvider.cs (2)
34var phoneNumber = await manager.GetPhoneNumberAsync(user).ConfigureAwait(false); 53var phoneNumber = await manager.GetPhoneNumberAsync(user).ConfigureAwait(false);