共用方式為


SignInManager<TUser> 建構函式

定義

多載

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

建立 SignInManager<TUser> 的新執行個體。

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

建立 SignInManager<TUser> 的新執行個體。

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

建立 SignInManager<TUser> 的新執行個體。

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

建立 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)))

參數

userManager
UserManager<TUser>

UserManager 實例,用來擷取使用者並保存使用者。

contextAccessor
IHttpContextAccessor

用來存取 的 HttpContext 存取子。

claimsFactory
IUserClaimsPrincipalFactory<TUser>

用來為使用者建立宣告主體的處理站。

optionsAccessor
IOptions<IdentityOptions>

用來存取 的 IdentityOptions 存取子。

logger
ILogger<SignInManager<TUser>>

用來記錄訊息、警告和錯誤的記錄器。

適用於

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

來源:
SignInManager.cs
來源:
SignInManager.cs

建立 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)

參數

userManager
UserManager<TUser>

UserManager 實例,用來擷取使用者並保存使用者。

contextAccessor
IHttpContextAccessor

用來存取 的 HttpContext 存取子。

claimsFactory
IUserClaimsPrincipalFactory<TUser>

用來為使用者建立宣告主體的處理站。

optionsAccessor
IOptions<IdentityOptions>

用來存取 的 IdentityOptions 存取子。

logger
ILogger<SignInManager<TUser>>

用來記錄訊息、警告和錯誤的記錄器。

schemes
IAuthenticationSchemeProvider

所使用的配置提供者會列舉驗證配置。

適用於

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

來源:
SignInManager.cs

建立 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))

參數

userManager
UserManager<TUser>

UserManager 實例,用來擷取使用者並保存使用者。

contextAccessor
IHttpContextAccessor

用來存取 的 HttpContext 存取子。

claimsFactory
IUserClaimsPrincipalFactory<TUser>

用來為使用者建立宣告主體的處理站。

optionsAccessor
IOptions<IdentityOptions>

用來存取 的 IdentityOptions 存取子。

logger
ILogger<SignInManager<TUser>>

用來記錄訊息、警告和錯誤的記錄器。

schemes
IAuthenticationSchemeProvider

所使用的配置提供者會列舉驗證配置。

confirmation
IUserConfirmation<TUser>

所使用的 IUserConfirmation<TUser> 檢查是否確認使用者帳戶。

適用於