Condividi tramite


AuthorizationHandler<TRequirement,TResource>.HandleRequirementAsync Metodo

Definizione

Prende una decisione se l'autorizzazione è consentita in base a un requisito e una risorsa specifici.

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

Parametri

context
AuthorizationHandlerContext

Contesto di autorizzazione.

requirement
TRequirement

Requisito di valutazione.

resource
TResource

Risorsa da valutare.

Restituisce

Si applica a