Compartir a través de


AuthorizationHandler<TRequirement,TResource>.HandleRequirementAsync Método

Definición

Toma una decisión si se permite la autorización en función de un requisito y un recurso específicos.

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

Parámetros

context
AuthorizationHandlerContext

Contexto de autorización.

requirement
TRequirement

Requisito para evaluar.

resource
TResource

Recurso que se va a evaluar.

Devoluciones

Se aplica a