IAuthenticationHandlerProvider.GetHandlerAsync(HttpContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the handler instance that will be used.
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)
Parameters
- context
- HttpContext
The HttpContext.
- authenticationScheme
- String
The name of the authentication scheme being handled.
Returns
The handler instance.