22 references to FindByIdAsync
Identity.ExternalClaims (1)
Pages\Account\ConfirmEmail.cshtml.cs (1)
31var user = await _userManager.FindByIdAsync(userId);
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
243var user = await _userManager.FindByIdAsync(userId);
Microsoft.AspNetCore.Identity (3)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
146if (await userManager.FindByIdAsync(userId) is not { } user)
SignInManager.cs (2)
301var user = await UserManager.FindByIdAsync(principal.Identity.Name); 878var user = await UserManager.FindByIdAsync(userId);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (7)
SqlStoreOnlyUsersTestBase.cs (1)
168var userById = await manager.FindByIdAsync(user.Id.ToString());
SqlStoreTestBase.cs (1)
274var userById = await manager.FindByIdAsync(user.Id.ToString());
UserStoreTest.cs (5)
225var user1 = await manager1.FindByIdAsync(user.Id); 226var user2 = await manager2.FindByIdAsync(user.Id); 256var user2 = await manager2.FindByIdAsync(user.Id); 285var user1 = await manager1.FindByIdAsync(user.Id); 286var user2 = await manager2.FindByIdAsync(user.Id);
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
210Assert.Null(await manager.FindByIdAsync(userId)); 346Assert.NotNull(await manager.FindByIdAsync(await manager.GetUserIdAsync(user)));
Microsoft.AspNetCore.Identity.Test (3)
SignInManagerTest.cs (1)
94manager.Setup(m => m.FindByIdAsync(user.Id)).ReturnsAsync(user);
UserManagerTest.cs (2)
213var result = await userManager.FindByIdAsync(user.Id); 1169await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.FindByIdAsync(null));
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\ConfirmEmail.cshtml.cs (1)
50var user = await _userManager.FindByIdAsync(userId);
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (1)
52var user = await _userManager.FindByIdAsync(userId);
Areas\Identity\Pages\V5\Account\ConfirmEmail.cshtml.cs (1)
50var user = await _userManager.FindByIdAsync(userId);
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (1)
52var user = await _userManager.FindByIdAsync(userId);
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
436return id == null ? Task.FromResult<TUser?>(null) : FindByIdAsync(id);