IAuthenticationHandlerProvider.GetHandlerAsync(HttpContext, String) 方法

定义

返回将使用的处理程序实例。

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)

参数

authenticationScheme
String

正在处理的身份验证方案的名称。

返回

处理程序实例。

适用于