1 write to UserType
Microsoft.Extensions.Identity.Core (1)
31 references to UserType
Microsoft.AspNetCore.Identity (13)
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));