Compartilhar via


AuthorizationHandler<TRequirement>.HandleRequirementAsync Método

Definição

Tomará uma decisão se a autorização for permitida com base em um 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

O contexto de autorização.

requirement
TRequirement

O requisito a ser avaliado.

Retornos

Aplica-se a