RemoteAuthenticationHandler<TOptions> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RemoteAuthenticationHandler<TOptions>()
protected:
RemoteAuthenticationHandler();
protected RemoteAuthenticationHandler ();
Protected Sub New ()
適用於
RemoteAuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder)
初始化 RemoteAuthenticationHandler<TOptions> 的新執行個體。
protected RemoteAuthenticationHandler (Microsoft.Extensions.Options.IOptionsMonitor<TOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder);
new Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder -> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))>
Protected Sub New (options As IOptionsMonitor(Of TOptions), logger As ILoggerFactory, encoder As UrlEncoder)
參數
- options
- IOptionsMonitor<TOptions>
選項實例的監視器。
- logger
- ILoggerFactory
- encoder
- UrlEncoder
適用於
RemoteAuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
警告
ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.
初始化 RemoteAuthenticationHandler<TOptions> 的新執行個體。
protected:
RemoteAuthenticationHandler(Microsoft::Extensions::Options::IOptionsMonitor<TOptions> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ logger, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::AspNetCore::Authentication::ISystemClock ^ clock);
protected RemoteAuthenticationHandler (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 RemoteAuthenticationHandler (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.RemoteAuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))>
[<System.Obsolete("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")>]
new Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))>
Protected Sub New (options As IOptionsMonitor(Of TOptions), logger As ILoggerFactory, encoder As UrlEncoder, clock As ISystemClock)
參數
- options
- IOptionsMonitor<TOptions>
選項實例的監視器。
- logger
- ILoggerFactory
- encoder
- UrlEncoder
- clock
- ISystemClock
- 屬性