Sdílet prostřednictvím


RolesAuthorizationRequirement.HandleRequirementAsync Metoda

Definice

Rozhodne, jestli je autorizace povolená na základě konkrétního požadavku.

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

Parametry

context
AuthorizationHandlerContext

Kontext autorizace.

requirement
RolesAuthorizationRequirement

Požadavek na vyhodnocení.

Návraty

Platí pro