diff --git a/src/Microsoft.Extensions.Identity.Core/IdentityBuilder.cs b/src/Microsoft.Extensions.Identity.Core/IdentityBuilder.cs index c82e0efe9e..0d26dfccac 100644 --- a/src/Microsoft.Extensions.Identity.Core/IdentityBuilder.cs +++ b/src/Microsoft.Extensions.Identity.Core/IdentityBuilder.cs @@ -68,18 +68,18 @@ namespace Microsoft.AspNetCore.Identity /// /// Adds an for the . /// - /// The user validator type. + /// The user validator type. /// The current instance. - public virtual IdentityBuilder AddUserValidator() where TUser : class - => AddScoped(typeof(IUserValidator<>).MakeGenericType(UserType), typeof(TUser)); + public virtual IdentityBuilder AddUserValidator() where TValidator : class + => AddScoped(typeof(IUserValidator<>).MakeGenericType(UserType), typeof(TValidator)); /// /// Adds an for the . /// - /// The type of the claims principal factory. + /// The type of the claims principal factory. /// The current instance. - public virtual IdentityBuilder AddClaimsPrincipalFactory() where TUser : class - => AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(TUser)); + public virtual IdentityBuilder AddClaimsPrincipalFactory() where TFactory : class + => AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(TFactory)); /// /// Adds an . @@ -95,10 +95,10 @@ namespace Microsoft.AspNetCore.Identity /// /// Adds an for the . /// - /// The user type whose password will be validated. + /// The validator type used to validate passwords. /// The current instance. - public virtual IdentityBuilder AddPasswordValidator() where TUser : class - => AddScoped(typeof(IPasswordValidator<>).MakeGenericType(UserType), typeof(TUser)); + public virtual IdentityBuilder AddPasswordValidator() where TValidator : class + => AddScoped(typeof(IPasswordValidator<>).MakeGenericType(UserType), typeof(TValidator)); /// /// Adds an for the .