1 type derived from UserClaimsPrincipalFactory
Microsoft.AspNetCore.Identity.Test (1)
IdentityBuilderTest.cs (1)
365private class MyClaimsPrincipalFactory : UserClaimsPrincipalFactory<PocoUser, PocoRole>
7 instantiations of UserClaimsPrincipalFactory
Microsoft.AspNetCore.Identity.Test (7)
SignInManagerTest.cs (4)
46var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager.Object, roleManager.Object, options.Object); 76var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager.Object, roleManager.Object, options.Object); 108var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager, roleManager.Object, options.Object); 1285var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager, roleManager.Object, options);
UserClaimsPrincipalFactoryTest.cs (3)
19() => new UserClaimsPrincipalFactory<PocoUser, PocoRole>(userManager, roleManager, options.Object)); 22var factory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(userManager, roleManager, options.Object); 83var factory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(userManager.Object, roleManager.Object, options.Object);
10 references to UserClaimsPrincipalFactory
Microsoft.AspNetCore.Identity (1)
IdentityServiceCollectionExtensions.cs (1)
103services.TryAddScoped<IUserClaimsPrincipalFactory<TUser>, UserClaimsPrincipalFactory<TUser, TRole>>();
Microsoft.AspNetCore.Identity.Test (7)
IdentityBuilderTest.cs (1)
26Assert.IsType<UserClaimsPrincipalFactory<PocoUser, PocoRole>>(sp.GetRequiredService<IUserClaimsPrincipalFactory<PocoUser>>());
SignInManagerTest.cs (4)
46var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager.Object, roleManager.Object, options.Object); 76var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager.Object, roleManager.Object, options.Object); 108var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager, roleManager.Object, options.Object); 1285var claimsFactory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(manager, roleManager.Object, options);
UserClaimsPrincipalFactoryTest.cs (2)
22var factory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(userManager, roleManager, options.Object); 83var factory = new UserClaimsPrincipalFactory<PocoUser, PocoRole>(userManager.Object, roleManager.Object, options.Object);
Microsoft.Extensions.Identity.Core (2)
IdentityBuilder.cs (1)
200Services.AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(UserClaimsPrincipalFactory<,>).MakeGenericType(UserType, RoleType));
UserClaimsPrincipalFactory.cs (1)
111/// Initializes a new instance of the <see cref="UserClaimsPrincipalFactory{TUser, TRole}"/> class.