Partager via


IAuthenticationHandlerProvider.GetHandlerAsync(HttpContext, String) Méthode

Définition

Retourne le gestionnaire instance qui sera utilisé.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::IAuthenticationHandler ^> ^ GetHandlerAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ authenticationScheme);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.IAuthenticationHandler> GetHandlerAsync (Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.IAuthenticationHandler?> GetHandlerAsync (Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme);
abstract member GetHandlerAsync : Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.IAuthenticationHandler>
Public Function GetHandlerAsync (context As HttpContext, authenticationScheme As String) As Task(Of IAuthenticationHandler)

Paramètres

context
HttpContext

L’HttpContextopérateur

authenticationScheme
String

Nom du schéma d’authentification géré.

Retours

Gestionnaire instance.

S’applique à