AuthenticationServiceCollectionExtensions.AddRemoteScheme<TOptions,THandler> Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Precaución
AddScheme is obsolete. Use AddAuthentication().AddScheme instead.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRemoteScheme<TOptions,THandler> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>;
[System.Obsolete("AddScheme is obsolete. Use AddAuthentication().AddScheme instead.")]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRemoteScheme<TOptions,THandler> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>;
static member AddRemoteScheme : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options>)
[<System.Obsolete("AddScheme is obsolete. Use AddAuthentication().AddScheme instead.")>]
static member AddRemoteScheme : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options>)
<Extension()>
Public Function AddRemoteScheme(Of TOptions As {RemoteAuthenticationOptionsNew}, THandler As {RemoteAuthenticationOptionsNew}) (services As IServiceCollection, authenticationScheme As String, displayName As String, configureOptions As Action(Of TOptions)) As IServiceCollection
Parámetros de tipo
- TOptions
- THandler
Parámetros
- services
- IServiceCollection
- authenticationScheme
- String
- displayName
- String
- configureOptions
- Action<TOptions>
Devoluciones
- Atributos