DenyAnonymousAuthorizationRequirement.HandleRequirementAsync Método

Definição

Tomará uma decisão se a autorização for permitida com base em um requisito específico.

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

Parâmetros

context
AuthorizationHandlerContext

O contexto de autorização.

requirement
DenyAnonymousAuthorizationRequirement

O requisito a ser avaliado.

Retornos

Aplica-se a