AuthenticationBuilder.AddScheme Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddScheme<TOptions,THandler>(String, Action<TOptions>) |
Aggiunge un oggetto AuthenticationScheme che può essere usato da IAuthenticationService. |
AddScheme<TOptions,THandler>(String, String, Action<TOptions>) |
Aggiunge un oggetto AuthenticationScheme che può essere usato da IAuthenticationService. |
AddScheme<TOptions,THandler>(String, Action<TOptions>)
- Origine:
- AuthenticationBuilder.cs
- Origine:
- AuthenticationBuilder.cs
- Origine:
- AuthenticationBuilder.cs
Aggiunge un oggetto AuthenticationScheme che può essere usato da IAuthenticationService.
public:
generic <typename TOptions, typename THandler>
where TOptions : Microsoft::AspNetCore::Authentication::AuthenticationSchemeOptionsgcnew() where THandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions> virtual Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddScheme(System::String ^ authenticationScheme, Action<TOptions> ^ configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, Action<TOptions>? configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
abstract member AddScheme : string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
override this.AddScheme : string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
Public Overridable Function AddScheme(Of TOptions As {AuthenticationSchemeOptionsNew}, THandler As {AuthenticationSchemeOptionsNew}) (authenticationScheme As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder
Parametri di tipo
- TOptions
Tipo AuthenticationSchemeOptions per configurare il gestore.
- THandler
Oggetto AuthenticationHandler<TOptions> utilizzato per gestire questo schema.
Parametri
- authenticationScheme
- String
Nome di questo schema.
- configureOptions
- Action<TOptions>
Usato per configurare le opzioni dello schema.
Restituisce
Generatore.
Si applica a
AddScheme<TOptions,THandler>(String, String, Action<TOptions>)
- Origine:
- AuthenticationBuilder.cs
- Origine:
- AuthenticationBuilder.cs
- Origine:
- AuthenticationBuilder.cs
Aggiunge un oggetto AuthenticationScheme che può essere usato da IAuthenticationService.
public:
generic <typename TOptions, typename THandler>
where TOptions : Microsoft::AspNetCore::Authentication::AuthenticationSchemeOptionsgcnew() where THandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions> virtual Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddScheme(System::String ^ authenticationScheme, System::String ^ displayName, Action<TOptions> ^ configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
abstract member AddScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
override this.AddScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
Public Overridable Function AddScheme(Of TOptions As {AuthenticationSchemeOptionsNew}, THandler As {AuthenticationSchemeOptionsNew}) (authenticationScheme As String, displayName As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder
Parametri di tipo
- TOptions
Tipo AuthenticationSchemeOptions per configurare il gestore.
- THandler
Oggetto AuthenticationHandler<TOptions> utilizzato per gestire questo schema.
Parametri
- authenticationScheme
- String
Nome di questo schema.
- displayName
- String
Nome visualizzato di questo schema.
- configureOptions
- Action<TOptions>
Usato per configurare le opzioni dello schema.
Restituisce
Generatore.