Udostępnij za pośrednictwem


UserManager<TUser> Konstruktory

Definicja

Przeciążenia

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

Tworzy nowe wystąpienie klasy UserManager<TUser>.

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

Tworzy nowe wystąpienie klasy UserManager<TUser>.

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

Tworzy nowe wystąpienie klasy UserManager<TUser>.

public:
 UserManager(Microsoft::AspNetCore::Identity::IUserStore<TUser> ^ store, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::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 UserManager (Microsoft.AspNetCore.Identity.IUserStore<TUser> store, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.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.UserManager<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.IUserStore<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.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.UserManager<'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)))

Parametry

store
IUserStore<TUser>

Magazyn trwałości, nad którym będzie działać menedżer.

optionsAccessor
IOptions<IdentityOptions>

Akcesorium używane do uzyskiwania dostępu do metody IdentityOptions.

passwordHasher
IPasswordHasher<TUser>

Implementacja tworzenia skrótów haseł do użycia podczas zapisywania haseł.

userValidators
IEnumerable<IUserValidator<TUser>>

Kolekcja elementów do IUserValidator<TUser> weryfikowania użytkowników.

passwordValidators
IEnumerable<IPasswordValidator<TUser>>

Kolekcja elementów do sprawdzania IPasswordValidator<TUser> poprawności haseł.

keyNormalizer
ILookupNormalizer

Element ILookupNormalizer do użycia podczas generowania kluczy indeksu dla użytkowników.

errors
IdentityErrorDescriber

Używany IdentityErrorDescriber do obsługi komunikatów o błędach dostawcy.

services
IServiceProvider

Służy do rozwiązywania IServiceProvider problemów z usługami.

logger
ILogger<UserManager<TUser>>

Rejestrator używany do rejestrowania komunikatów, ostrzeżeń i błędów.

Dotyczy

UserManager<TUser>(IUserStore<TUser>, IOptions<IdentityOptions>, IPasswordHasher<TUser>, IEnumerable<IUserValidator<TUser>>, IEnumerable<IPasswordValidator<TUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<TUser>>)

Źródło:
UserManager.cs
Źródło:
UserManager.cs
Źródło:
UserManager.cs
Źródło:
UserManager.cs
Źródło:
UserManager.cs
Źródło:
UserManager.cs
Źródło:
UserManager.cs
Źródło:
UserManager.cs
Źródło:
UserManager.cs

Tworzy nowe wystąpienie klasy UserManager<TUser>.

public:
 UserManager(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 UserManager (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.UserManager<'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.UserManager<'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)))

Parametry

store
IUserStore<TUser>

Magazyn trwałości, nad którym będzie działać menedżer.

optionsAccessor
IOptions<IdentityOptions>

Akcesorium używane do uzyskiwania dostępu do metody IdentityOptions.

passwordHasher
IPasswordHasher<TUser>

Implementacja tworzenia skrótów haseł do użycia podczas zapisywania haseł.

userValidators
IEnumerable<IUserValidator<TUser>>

Kolekcja elementów do IUserValidator<TUser> weryfikowania użytkowników.

passwordValidators
IEnumerable<IPasswordValidator<TUser>>

Kolekcja elementów do sprawdzania IPasswordValidator<TUser> poprawności haseł.

keyNormalizer
ILookupNormalizer

Element ILookupNormalizer do użycia podczas generowania kluczy indeksu dla użytkowników.

errors
IdentityErrorDescriber

Używany IdentityErrorDescriber do obsługi komunikatów o błędach dostawcy.

services
IServiceProvider

Służy do rozwiązywania IServiceProvider problemów z usługami.

logger
ILogger<UserManager<TUser>>

Rejestrator używany do rejestrowania komunikatów, ostrzeżeń i błędów.

Dotyczy