DataProtectorTokenProvider<TUser> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>) |
Initializes a new instance of the DataProtectorTokenProvider<TUser> class. |
DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>, ILogger<DataProtectorTokenProvider<TUser>>) |
Initializes a new instance of the DataProtectorTokenProvider<TUser> class. |
DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>)
Initializes a new instance of the DataProtectorTokenProvider<TUser> class.
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))
Parameters
- dataProtectionProvider
- IDataProtectionProvider
The system data protection provider.
The configured DataProtectionTokenProviderOptions.
Applies to
DataProtectorTokenProvider<TUser>(IDataProtectionProvider, IOptions<DataProtectionTokenProviderOptions>, ILogger<DataProtectorTokenProvider<TUser>>)
Initializes a new instance of the DataProtectorTokenProvider<TUser> class.
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)))
Parameters
- dataProtectionProvider
- IDataProtectionProvider
The system data protection provider.
The configured DataProtectionTokenProviderOptions.
- logger
- ILogger<DataProtectorTokenProvider<TUser>>
The logger used to log messages, warnings and errors.