DataProtectorTokenProvider<TUser> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>)
初始化 DataProtectorTokenProvider<TUser> 类的新实例。
public:
DataProtectorTokenProvider(Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::DataProtectionTokenProviderOptions ^> ^ options);
public DataProtectorTokenProvider (Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.DataProtectionTokenProviderOptions> options);
new Microsoft.AspNetCore.Identity.DataProtectorTokenProvider<'User (requires 'User : null)> : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.DataProtectionTokenProviderOptions> -> Microsoft.AspNetCore.Identity.DataProtectorTokenProvider<'User (requires 'User : null)>
Public Sub New (dataProtectionProvider As IDataProtectionProvider, options As IOptions(Of DataProtectionTokenProviderOptions))
参数
- dataProtectionProvider
- IDataProtectionProvider
系统数据保护提供程序。
适用于
DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>, ILogger<DataProtectorTokenProvider<TUser>>)
初始化 DataProtectorTokenProvider<TUser> 类的新实例。
public:
DataProtectorTokenProvider(Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::DataProtectionTokenProviderOptions ^> ^ options, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Identity::DataProtectorTokenProvider<TUser> ^> ^ logger);
public DataProtectorTokenProvider (Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.DataProtectionTokenProviderOptions> options, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.DataProtectorTokenProvider<TUser>> logger);
new Microsoft.AspNetCore.Identity.DataProtectorTokenProvider<'User (requires 'User : null)> : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.DataProtectionTokenProviderOptions> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.DataProtectorTokenProvider<'User>> -> Microsoft.AspNetCore.Identity.DataProtectorTokenProvider<'User (requires 'User : null)>
Public Sub New (dataProtectionProvider As IDataProtectionProvider, options As IOptions(Of DataProtectionTokenProviderOptions), logger As ILogger(Of DataProtectorTokenProvider(Of TUser)))
参数
- dataProtectionProvider
- IDataProtectionProvider
系统数据保护提供程序。
- logger
- ILogger<DataProtectorTokenProvider<TUser>>
用于记录消息、警告和错误的记录器。