UserClaimsPrincipalFactory<TUser> Konstruktor

Definice

Inicializuje novou instanci UserClaimsPrincipalFactory<TUser> třídy.

public:
 UserClaimsPrincipalFactory(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ userManager, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ optionsAccessor);
public UserClaimsPrincipalFactory (Microsoft.AspNetCore.Identity.UserManager<TUser> userManager, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor);
new Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<'User (requires 'User : null)>
Public Sub New (userManager As UserManager(Of TUser), optionsAccessor As IOptions(Of IdentityOptions))

Parametry

userManager
UserManager<TUser>

Informace UserManager<TUser> o uživateli se načtou z.

optionsAccessor
IOptions<IdentityOptions>

Nakonfigurovaný .IdentityOptions

Platí pro