Compartilhar via


SignInManager<TUser> Construtores

Definição

Sobrecargas

SignInManager<TUser>(UserManager<TUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<TUser>, IOptions<IdentityOptions>, ILogger<SignInManager<TUser>>)

Cria uma nova instância de SignInManager<TUser>.

SignInManager<TUser>(UserManager<TUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<TUser>, IOptions<IdentityOptions>, ILogger<SignInManager<TUser>>, IAuthenticationSchemeProvider)

Cria uma nova instância de SignInManager<TUser>.

SignInManager<TUser>(UserManager<TUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<TUser>, IOptions<IdentityOptions>, ILogger<SignInManager<TUser>>, IAuthenticationSchemeProvider, IUserConfirmation<TUser>)

Cria uma nova instância de SignInManager<TUser>.

SignInManager<TUser>(UserManager<TUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<TUser>, IOptions<IdentityOptions>, ILogger<SignInManager<TUser>>)

Cria uma nova instância de SignInManager<TUser>.

public:
 SignInManager(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ userManager, Microsoft::AspNetCore::Http::IHttpContextAccessor ^ contextAccessor, Microsoft::AspNetCore::Identity::IUserClaimsPrincipalFactory<TUser> ^ claimsFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IdentityOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::SignInManager<TUser> ^> ^ logger);
public SignInManager (Microsoft.AspNetCore.Identity.UserManager<TUser> userManager, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor, Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> claimsFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IdentityOptions> optionsAccessor, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.SignInManager<TUser>> logger);
new Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * Microsoft.AspNetCore.Http.IHttpContextAccessor * Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IdentityOptions> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.SignInManager<'User>> -> Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)>
Public Sub New (userManager As UserManager(Of TUser), contextAccessor As IHttpContextAccessor, claimsFactory As IUserClaimsPrincipalFactory(Of TUser), optionsAccessor As IOptions(Of IdentityOptions), logger As ILogger(Of SignInManager(Of TUser)))

Parâmetros

userManager
UserManager<TUser>

Uma instância de UserManager usada para recuperar usuários de e persistir usuários.

contextAccessor
IHttpContextAccessor

O acessador usado para acessar o HttpContext.

claimsFactory
IUserClaimsPrincipalFactory<TUser>

A fábrica a ser usada para criar entidades de segurança de declarações para um usuário.

optionsAccessor
IOptions<IdentityOptions>

O acessador usado para acessar o IdentityOptions.

logger
ILogger<SignInManager<TUser>>

O agente usado para registrar mensagens, avisos e erros.

Aplica-se a

SignInManager<TUser>(UserManager<TUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<TUser>, IOptions<IdentityOptions>, ILogger<SignInManager<TUser>>, IAuthenticationSchemeProvider)

Origem:
SignInManager.cs
Origem:
SignInManager.cs

Cria uma nova instância de SignInManager<TUser>.

public:
 SignInManager(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ userManager, Microsoft::AspNetCore::Http::IHttpContextAccessor ^ contextAccessor, Microsoft::AspNetCore::Identity::IUserClaimsPrincipalFactory<TUser> ^ claimsFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::SignInManager<TUser> ^> ^ logger, Microsoft::AspNetCore::Authentication::IAuthenticationSchemeProvider ^ schemes);
public SignInManager (Microsoft.AspNetCore.Identity.UserManager<TUser> userManager, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor, Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> claimsFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.SignInManager<TUser>> logger, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes);
new Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * Microsoft.AspNetCore.Http.IHttpContextAccessor * Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.SignInManager<'User>> * Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider -> Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)>
Public Sub New (userManager As UserManager(Of TUser), contextAccessor As IHttpContextAccessor, claimsFactory As IUserClaimsPrincipalFactory(Of TUser), optionsAccessor As IOptions(Of IdentityOptions), logger As ILogger(Of SignInManager(Of TUser)), schemes As IAuthenticationSchemeProvider)

Parâmetros

userManager
UserManager<TUser>

Uma instância de UserManager usada para recuperar usuários de e persistir usuários.

contextAccessor
IHttpContextAccessor

O acessador usado para acessar o HttpContext.

claimsFactory
IUserClaimsPrincipalFactory<TUser>

A fábrica a ser usada para criar entidades de segurança de declarações para um usuário.

optionsAccessor
IOptions<IdentityOptions>

O acessador usado para acessar o IdentityOptions.

logger
ILogger<SignInManager<TUser>>

O agente usado para registrar mensagens, avisos e erros.

schemes
IAuthenticationSchemeProvider

O provedor de esquema usado enumera os esquemas de autenticação.

Aplica-se a

SignInManager<TUser>(UserManager<TUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<TUser>, IOptions<IdentityOptions>, ILogger<SignInManager<TUser>>, IAuthenticationSchemeProvider, IUserConfirmation<TUser>)

Origem:
SignInManager.cs

Cria uma nova instância de SignInManager<TUser>.

public:
 SignInManager(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ userManager, Microsoft::AspNetCore::Http::IHttpContextAccessor ^ contextAccessor, Microsoft::AspNetCore::Identity::IUserClaimsPrincipalFactory<TUser> ^ claimsFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::SignInManager<TUser> ^> ^ logger, Microsoft::AspNetCore::Authentication::IAuthenticationSchemeProvider ^ schemes, Microsoft::AspNetCore::Identity::IUserConfirmation<TUser> ^ confirmation);
public SignInManager (Microsoft.AspNetCore.Identity.UserManager<TUser> userManager, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor, Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> claimsFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.SignInManager<TUser>> logger, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes, Microsoft.AspNetCore.Identity.IUserConfirmation<TUser> confirmation);
new Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * Microsoft.AspNetCore.Http.IHttpContextAccessor * Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.SignInManager<'User>> * Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider * Microsoft.AspNetCore.Identity.IUserConfirmation<'User (requires 'User : null)> -> Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)>
Public Sub New (userManager As UserManager(Of TUser), contextAccessor As IHttpContextAccessor, claimsFactory As IUserClaimsPrincipalFactory(Of TUser), optionsAccessor As IOptions(Of IdentityOptions), logger As ILogger(Of SignInManager(Of TUser)), schemes As IAuthenticationSchemeProvider, confirmation As IUserConfirmation(Of TUser))

Parâmetros

userManager
UserManager<TUser>

Uma instância de UserManager usada para recuperar usuários de e persistir usuários.

contextAccessor
IHttpContextAccessor

O acessador usado para acessar o HttpContext.

claimsFactory
IUserClaimsPrincipalFactory<TUser>

A fábrica a ser usada para criar entidades de segurança de declarações para um usuário.

optionsAccessor
IOptions<IdentityOptions>

O acessador usado para acessar o IdentityOptions.

logger
ILogger<SignInManager<TUser>>

O agente usado para registrar mensagens, avisos e erros.

schemes
IAuthenticationSchemeProvider

O provedor de esquema usado enumera os esquemas de autenticação.

confirmation
IUserConfirmation<TUser>

O IUserConfirmation<TUser> usado marcar se uma conta de usuário é confirmada.

Aplica-se a