AspNetUserManager<TUser> Constructor

Definición

Crea una nueva instancia de AspNetUserManager<TUser>.

public:
 AspNetUserManager(Microsoft::AspNetCore::Identity::IUserStore<TUser> ^ store, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Identity::IPasswordHasher<TUser> ^ passwordHasher, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IUserValidator<TUser> ^> ^ userValidators, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Identity::IPasswordValidator<TUser> ^> ^ passwordValidators, Microsoft::AspNetCore::Identity::ILookupNormalizer ^ keyNormalizer, Microsoft::AspNetCore::Identity::IdentityErrorDescriber ^ errors, IServiceProvider ^ services, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::UserManager<TUser> ^> ^ logger);
public AspNetUserManager (Microsoft.AspNetCore.Identity.IUserStore<TUser> store, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor, Microsoft.AspNetCore.Identity.IPasswordHasher<TUser> passwordHasher, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IUserValidator<TUser>> userValidators, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IPasswordValidator<TUser>> passwordValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, IServiceProvider services, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<TUser>> logger);
new Microsoft.AspNetCore.Identity.AspNetUserManager<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.IUserStore<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> * Microsoft.AspNetCore.Identity.IPasswordHasher<'User (requires 'User : null)> * seq<Microsoft.AspNetCore.Identity.IUserValidator<'User>> * seq<Microsoft.AspNetCore.Identity.IPasswordValidator<'User>> * Microsoft.AspNetCore.Identity.ILookupNormalizer * Microsoft.AspNetCore.Identity.IdentityErrorDescriber * IServiceProvider * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<'User>> -> Microsoft.AspNetCore.Identity.AspNetUserManager<'User (requires 'User : null)>
Public Sub New (store As IUserStore(Of TUser), optionsAccessor As IOptions(Of IdentityOptions), passwordHasher As IPasswordHasher(Of TUser), userValidators As IEnumerable(Of IUserValidator(Of TUser)), passwordValidators As IEnumerable(Of IPasswordValidator(Of TUser)), keyNormalizer As ILookupNormalizer, errors As IdentityErrorDescriber, services As IServiceProvider, logger As ILogger(Of UserManager(Of TUser)))

Parámetros

store
IUserStore<TUser>

El almacén de persistencia en el que operará el administrador.

optionsAccessor
IOptions<IdentityOptions>

Descriptor de acceso utilizado para tener acceso a IdentityOptions.

passwordHasher
IPasswordHasher<TUser>

Implementación de hash de contraseñas que se va a usar al guardar contraseñas.

userValidators
IEnumerable<IUserValidator<TUser>>

Colección de para IUserValidator<TUser> validar a los usuarios.

passwordValidators
IEnumerable<IPasswordValidator<TUser>>

Colección de para IPasswordValidator<TUser> validar contraseñas.

keyNormalizer
ILookupNormalizer

que ILookupNormalizer se va a usar al generar claves de índice para los usuarios.

errors
IdentityErrorDescriber

utilizado IdentityErrorDescriber para proporcionar mensajes de error.

services
IServiceProvider

que IServiceProvider se usa para resolver los servicios.

logger
ILogger<UserManager<TUser>>

Registrador usado para registrar mensajes, advertencias y errores.

Se aplica a