AuthenticationHandler<TOptions> Constructors
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.
AuthenticationHandler<TOptions>() | |
AuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder) |
Initializes a new instance of AuthenticationHandler<TOptions>. |
AuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder, ISystemClock) |
Obsolete.
Initializes a new instance of AuthenticationHandler<TOptions>. |
protected:
AuthenticationHandler();
protected AuthenticationHandler ();
Protected Sub New ()
Applies to
ASP.NET Core 1.1 and ASP.NET Core 1.0
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1 |
- Source:
- AuthenticationHandler.cs
Initializes a new instance of AuthenticationHandler<TOptions>.
protected AuthenticationHandler (Microsoft.Extensions.Options.IOptionsMonitor<TOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder);
new Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder -> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))>
Protected Sub New (options As IOptionsMonitor(Of TOptions), logger As ILoggerFactory, encoder As UrlEncoder)
Parameters
- options
- IOptionsMonitor<TOptions>
The monitor for the options instance.
- logger
- ILoggerFactory
The ILoggerFactory.
- encoder
- UrlEncoder
The UrlEncoder.
Applies to
ASP.NET Core 9.0 and ASP.NET Core 8.0
Product | Versions |
---|---|
ASP.NET Core | 8.0, 9.0 |
AuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
Caution
ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.
Initializes a new instance of AuthenticationHandler<TOptions>.
protected:
AuthenticationHandler(Microsoft::Extensions::Options::IOptionsMonitor<TOptions> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ logger, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::AspNetCore::Authentication::ISystemClock ^ clock);
protected AuthenticationHandler (Microsoft.Extensions.Options.IOptionsMonitor<TOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock);
[System.Obsolete("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")]
protected AuthenticationHandler (Microsoft.Extensions.Options.IOptionsMonitor<TOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock);
new Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))>
[<System.Obsolete("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")>]
new Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))>
Protected Sub New (options As IOptionsMonitor(Of TOptions), logger As ILoggerFactory, encoder As UrlEncoder, clock As ISystemClock)
Parameters
- options
- IOptionsMonitor<TOptions>
The monitor for the options instance.
- logger
- ILoggerFactory
The ILoggerFactory.
- encoder
- UrlEncoder
The UrlEncoder.
- clock
- ISystemClock
The ISystemClock.
- Attributes
Applies to
ASP.NET Core 9.0 and other versions
Product | Versions (Obsolete) |
---|---|
ASP.NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0 (8.0, 9.0) |