SecurityStampValidator<TUser> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SecurityStampValidator<TUser>(IOptions<IdentityOptions>, SignInManager<TUser>)
创建 SecurityStampValidator<TUser> 的新实例。
public:
SecurityStampValidator(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IdentityOptions ^> ^ options, Microsoft::AspNetCore::Identity::SignInManager<TUser> ^ signInManager);
public SecurityStampValidator (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IdentityOptions> options, Microsoft.AspNetCore.Identity.SignInManager<TUser> signInManager);
new Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)> : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IdentityOptions> * Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> -> Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)>
Public Sub New (options As IOptions(Of IdentityOptions), signInManager As SignInManager(Of TUser))
参数
- options
- IOptions<IdentityOptions>
用于访问 IdentityOptions。
- signInManager
- SignInManager<TUser>
适用于
SecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock)
- Source:
- SecurityStampValidator.cs
- Source:
- SecurityStampValidator.cs
创建 SecurityStampValidator<TUser> 的新实例。
public:
SecurityStampValidator(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::SecurityStampValidatorOptions ^> ^ options, Microsoft::AspNetCore::Identity::SignInManager<TUser> ^ signInManager, Microsoft::AspNetCore::Authentication::ISystemClock ^ clock);
public SecurityStampValidator (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> options, Microsoft.AspNetCore.Identity.SignInManager<TUser> signInManager, Microsoft.AspNetCore.Authentication.ISystemClock clock);
new Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)> : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> * Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)>
Public Sub New (options As IOptions(Of SecurityStampValidatorOptions), signInManager As SignInManager(Of TUser), clock As ISystemClock)
参数
- options
- IOptions<SecurityStampValidatorOptions>
用于访问 IdentityOptions。
- signInManager
- SignInManager<TUser>
- clock
- ISystemClock
系统时钟。
适用于
SecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ILoggerFactory)
- Source:
- SecurityStampValidator.cs
创建 SecurityStampValidator<TUser> 的新实例。
public SecurityStampValidator (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> options, Microsoft.AspNetCore.Identity.SignInManager<TUser> signInManager, Microsoft.Extensions.Logging.ILoggerFactory logger);
new Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)> : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> * Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)>
Public Sub New (options As IOptions(Of SecurityStampValidatorOptions), signInManager As SignInManager(Of TUser), logger As ILoggerFactory)
参数
- options
- IOptions<SecurityStampValidatorOptions>
用于访问 IdentityOptions。
- signInManager
- SignInManager<TUser>
- logger
- ILoggerFactory
记录器。
适用于
SecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock, ILoggerFactory)
- Source:
- SecurityStampValidator.cs
注意
ISystemClock is obsolete, use TimeProvider on SecurityStampValidatorOptions instead.
创建 SecurityStampValidator<TUser> 的新实例。
public:
SecurityStampValidator(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::SecurityStampValidatorOptions ^> ^ options, Microsoft::AspNetCore::Identity::SignInManager<TUser> ^ signInManager, Microsoft::AspNetCore::Authentication::ISystemClock ^ clock, Microsoft::Extensions::Logging::ILoggerFactory ^ logger);
public SecurityStampValidator (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> options, Microsoft.AspNetCore.Identity.SignInManager<TUser> signInManager, Microsoft.AspNetCore.Authentication.ISystemClock clock, Microsoft.Extensions.Logging.ILoggerFactory logger);
[System.Obsolete("ISystemClock is obsolete, use TimeProvider on SecurityStampValidatorOptions instead.")]
public SecurityStampValidator (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> options, Microsoft.AspNetCore.Identity.SignInManager<TUser> signInManager, Microsoft.AspNetCore.Authentication.ISystemClock clock, Microsoft.Extensions.Logging.ILoggerFactory logger);
new Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)> : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> * Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> * Microsoft.AspNetCore.Authentication.ISystemClock * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)>
[<System.Obsolete("ISystemClock is obsolete, use TimeProvider on SecurityStampValidatorOptions instead.")>]
new Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)> : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions> * Microsoft.AspNetCore.Identity.SignInManager<'User (requires 'User : null)> * Microsoft.AspNetCore.Authentication.ISystemClock * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Identity.SecurityStampValidator<'User (requires 'User : null)>
Public Sub New (options As IOptions(Of SecurityStampValidatorOptions), signInManager As SignInManager(Of TUser), clock As ISystemClock, logger As ILoggerFactory)
参数
- options
- IOptions<SecurityStampValidatorOptions>
用于访问 IdentityOptions。
- signInManager
- SignInManager<TUser>
- clock
- ISystemClock
系统时钟。
- logger
- ILoggerFactory
记录器。
- 属性