Share via


IAsyncAuthorizationFilter.OnAuthorizationAsync Method

Definition

Called early in the filter pipeline to confirm request is authorized.

public:
 System::Threading::Tasks::Task ^ OnAuthorizationAsync(Microsoft::AspNetCore::Mvc::Filters::AuthorizationFilterContext ^ context);
public System.Threading.Tasks.Task OnAuthorizationAsync (Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext context);
abstract member OnAuthorizationAsync : Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext -> System.Threading.Tasks.Task
Public Function OnAuthorizationAsync (context As AuthorizationFilterContext) As Task

Parameters

Returns

A Task that on completion indicates the filter has executed.

Applies to