Delen via


SignInManager<TUser> Constructors

Definition

Overloads

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

Creates a new instance of SignInManager<TUser>.

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

Creates a new instance of SignInManager<TUser>.

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

Creates a new instance of SignInManager<TUser>.

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

Creates a new instance of 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)))

Parameters

userManager
UserManager<TUser>

An instance of UserManager used to retrieve users from and persist users.

contextAccessor
IHttpContextAccessor

The accessor used to access the HttpContext.

claimsFactory
IUserClaimsPrincipalFactory<TUser>

The factory to use to create claims principals for a user.

optionsAccessor
IOptions<IdentityOptions>

The accessor used to access the IdentityOptions.

logger
ILogger<SignInManager<TUser>>

The logger used to log messages, warnings and errors.

Applies to

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

Source:
SignInManager.cs
Source:
SignInManager.cs

Creates a new instance of 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)

Parameters

userManager
UserManager<TUser>

An instance of UserManager used to retrieve users from and persist users.

contextAccessor
IHttpContextAccessor

The accessor used to access the HttpContext.

claimsFactory
IUserClaimsPrincipalFactory<TUser>

The factory to use to create claims principals for a user.

optionsAccessor
IOptions<IdentityOptions>

The accessor used to access the IdentityOptions.

logger
ILogger<SignInManager<TUser>>

The logger used to log messages, warnings and errors.

schemes
IAuthenticationSchemeProvider

The scheme provider that is used enumerate the authentication schemes.

Applies to

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

Source:
SignInManager.cs

Creates a new instance of 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))

Parameters

userManager
UserManager<TUser>

An instance of UserManager used to retrieve users from and persist users.

contextAccessor
IHttpContextAccessor

The accessor used to access the HttpContext.

claimsFactory
IUserClaimsPrincipalFactory<TUser>

The factory to use to create claims principals for a user.

optionsAccessor
IOptions<IdentityOptions>

The accessor used to access the IdentityOptions.

logger
ILogger<SignInManager<TUser>>

The logger used to log messages, warnings and errors.

schemes
IAuthenticationSchemeProvider

The scheme provider that is used enumerate the authentication schemes.

confirmation
IUserConfirmation<TUser>

The IUserConfirmation<TUser> used check whether a user account is confirmed.

Applies to