1 write to UserType
Microsoft.Extensions.Identity.Core (1)
IdentityBuilder.cs (1)
30UserType = user;
31 references to UserType
Microsoft.AspNetCore.Identity (11)
IdentityBuilderExtensions.cs (11)
30var dataProtectionProviderType = typeof(DataProtectorTokenProvider<>).MakeGenericType(builder.UserType); 31var phoneNumberProviderType = typeof(PhoneNumberTokenProvider<>).MakeGenericType(builder.UserType); 32var emailTokenProviderType = typeof(EmailTokenProvider<>).MakeGenericType(builder.UserType); 33var authenticatorProviderType = typeof(AuthenticatorTokenProvider<>).MakeGenericType(builder.UserType); 44builder.Services.AddScoped(typeof(ISecurityStampValidator), typeof(SecurityStampValidator<>).MakeGenericType(builder.UserType)); 45builder.Services.AddScoped(typeof(ITwoFactorSecurityStampValidator), typeof(TwoFactorSecurityStampValidator<>).MakeGenericType(builder.UserType)); 50/// Adds a <see cref="SignInManager{TUser}"/> for the <see cref="IdentityBuilder.UserType"/>. 58var managerType = typeof(SignInManager<>).MakeGenericType(builder.UserType); 64/// Adds a <see cref="SignInManager{TUser}"/> for the <see cref="IdentityBuilder.UserType"/>. 73var managerType = typeof(SignInManager<>).MakeGenericType(builder.UserType); 77throw new InvalidOperationException(Resources.FormatInvalidManagerType(customType.Name, "SignInManager", builder.UserType.Name));
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityEntityFrameworkBuilderExtensions.cs (1)
25AddStores(builder.Services, builder.UserType, builder.RoleType, typeof(TContext));
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
61.MakeGenericType(builder.UserType));
Microsoft.Extensions.Identity.Core (18)
IdentityBuilder.cs (18)
82/// Adds an <see cref="IUserValidator{TUser}"/> for the <see cref="UserType"/>. 88=> AddScoped(typeof(IUserValidator<>).MakeGenericType(UserType), typeof(TValidator)); 91/// Adds an <see cref="IUserClaimsPrincipalFactory{TUser}"/> for the <see cref="UserType"/>. 97=> AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(TFactory)); 111/// Adds an <see cref="IPasswordValidator{TUser}"/> for the <see cref="UserType"/>. 117=> AddScoped(typeof(IPasswordValidator<>).MakeGenericType(UserType), typeof(TValidator)); 120/// Adds an <see cref="IUserStore{TUser}"/> for the <see cref="UserType"/>. 126=> AddScoped(typeof(IUserStore<>).MakeGenericType(UserType), typeof(TStore)); 138/// Adds a token provider for the <see cref="UserType"/>. 146if (!typeof(IUserTwoFactorTokenProvider<>).MakeGenericType(UserType).IsAssignableFrom(provider)) 148throw new InvalidOperationException(Resources.FormatInvalidManagerType(provider.Name, "IUserTwoFactorTokenProvider", UserType.Name)); 169/// Adds a <see cref="UserManager{TUser}"/> for the <see cref="UserType"/>. 176var userManagerType = typeof(UserManager<>).MakeGenericType(UserType); 180throw new InvalidOperationException(Resources.FormatInvalidManagerType(customType.Name, "UserManager", UserType.Name)); 200Services.AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(UserClaimsPrincipalFactory<,>).MakeGenericType(UserType, RoleType)); 276/// Adds a <see cref="IUserConfirmation{TUser}"/> for the <seealso cref="UserType"/>. 282=> AddScoped(typeof(IUserConfirmation<>).MakeGenericType(UserType), typeof(TUserConfirmation));