DataProtectorTokenProvider<TUser> 建構函式

定義

多載

DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>)

初始化 DataProtectorTokenProvider<TUser> 類別的新執行個體。

DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>, ILogger<DataProtectorTokenProvider<TUser>>)

初始化 DataProtectorTokenProvider<TUser> 類別的新執行個體。

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>>

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

適用於