AuthorizationHandler<TRequirement,TResource>.HandleRequirementAsync Method

Definition

Makes a decision if authorization is allowed based on a specific requirement and resource.

protected:
 abstract System::Threading::Tasks::Task ^ HandleRequirementAsync(Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^ context, TRequirement requirement, TResource resource);
protected abstract System.Threading.Tasks.Task HandleRequirementAsync (Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, TRequirement requirement, TResource resource);
abstract member HandleRequirementAsync : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext * 'Requirement * 'Resource -> System.Threading.Tasks.Task
Protected MustOverride Function HandleRequirementAsync (context As AuthorizationHandlerContext, requirement As TRequirement, resource As TResource) As Task

Parameters

context
AuthorizationHandlerContext

The authorization context.

requirement
TRequirement

The requirement to evaluate.

resource
TResource

The resource to evaluate.

Returns

Applies to