AuthorizationHandler<TRequirement,TResource>.HandleRequirementAsync Método

Definição

Toma uma decisão se a autorização é permitida com base em um requisito e 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

O contexto de autorização.

requirement
TRequirement

O requisito a ser avaliado.

resource
TResource

O recurso a ser avaliado.

Retornos

Aplica-se a