Compartir a través de


AuthorizationHandler<TRequirement>.HandleRequirementAsync Método

Definición

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

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

Parámetros

context
AuthorizationHandlerContext

Contexto de autorización.

requirement
TRequirement

Requisito para evaluar.

Devoluciones

Se aplica a