Compartir a través de


AuthenticationHandler<TOptions>.InitializeAsync Método

Definición

Sobrecargas

InitializeAsync(AuthenticationScheme, HttpContext)

Inicialice el controlador, resuelva las opciones y validelas.

InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder)

Se llama a Initialize una vez por solicitud para contextualizar esta instancia con el estado adecuado.

InitializeAsync(AuthenticationScheme, HttpContext)

Source:
AuthenticationHandler.cs
Source:
AuthenticationHandler.cs
Source:
AuthenticationHandler.cs

Inicialice el controlador, resuelva las opciones y validelas.

public:
 virtual System::Threading::Tasks::Task ^ InitializeAsync(Microsoft::AspNetCore::Authentication::AuthenticationScheme ^ scheme, Microsoft::AspNetCore::Http::HttpContext ^ context);
public System.Threading.Tasks.Task InitializeAsync (Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Http.HttpContext context);
abstract member InitializeAsync : Microsoft.AspNetCore.Authentication.AuthenticationScheme * Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
override this.InitializeAsync : Microsoft.AspNetCore.Authentication.AuthenticationScheme * Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
Public Function InitializeAsync (scheme As AuthenticationScheme, context As HttpContext) As Task

Parámetros

context
HttpContext

Devoluciones

Implementaciones

Se aplica a

InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder)

Se llama a Initialize una vez por solicitud para contextualizar esta instancia con el estado adecuado.

public:
 System::Threading::Tasks::Task ^ InitializeAsync(TOptions options, Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::Extensions::Logging::ILogger ^ logger, System::Text::Encodings::Web::UrlEncoder ^ encoder);
public System.Threading.Tasks.Task InitializeAsync (TOptions options, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.Extensions.Logging.ILogger logger, System.Text.Encodings.Web.UrlEncoder encoder);
member this.InitializeAsync : 'Options * Microsoft.AspNetCore.Http.HttpContext * Microsoft.Extensions.Logging.ILogger * System.Text.Encodings.Web.UrlEncoder -> System.Threading.Tasks.Task
Public Function InitializeAsync (options As TOptions, context As HttpContext, logger As ILogger, encoder As UrlEncoder) As Task

Parámetros

options
TOptions

Las opciones originales pasadas por el comportamiento del control de aplicación

context
HttpContext

El objeto de utilidad para observar la solicitud y la respuesta actuales

logger
ILogger

Factoría de registro usada para crear registradores

Devoluciones

finalización asincrónica

Se aplica a