Sdílet prostřednictvím


AuthorizationHandler<TRequirement,TResource>.HandleRequirementAsync Metoda

Definice

Rozhoduje, jestli je autorizace povolená na základě konkrétního požadavku a prostředku.

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

Parametry

context
AuthorizationHandlerContext

Kontext autorizace.

requirement
TRequirement

Požadavek na vyhodnocení.

resource
TResource

Prostředek, který se má vyhodnotit.

Návraty

Platí pro