Compartir a través de


RolesAuthorizationRequirement.HandleRequirementAsync Método

Definición

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

protected:
 override System::Threading::Tasks::Task ^ HandleRequirementAsync(Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^ context, Microsoft::AspNetCore::Authorization::Infrastructure::RolesAuthorizationRequirement ^ requirement);
protected override System.Threading.Tasks.Task HandleRequirementAsync (Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.RolesAuthorizationRequirement requirement);
override this.HandleRequirementAsync : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext * Microsoft.AspNetCore.Authorization.Infrastructure.RolesAuthorizationRequirement -> System.Threading.Tasks.Task
Protected Overrides Function HandleRequirementAsync (context As AuthorizationHandlerContext, requirement As RolesAuthorizationRequirement) As Task

Parámetros

context
AuthorizationHandlerContext

Contexto de autorización.

requirement
RolesAuthorizationRequirement

Requisito para evaluar.

Devoluciones

Se aplica a