Partager via


AuthorizationHandler<TRequirement,TResource>.HandleRequirementAsync Méthode

Définition

Prend une décision si l’autorisation est autorisée en fonction d’une exigence et d’une ressource spécifiques.

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

Paramètres

context
AuthorizationHandlerContext

Contexte d’autorisation.

requirement
TRequirement

Exigence à évaluer.

resource
TResource

Ressource à évaluer.

Retours

S’applique à