ClaimsAuthorizationRequirement.HandleRequirementAsync Метод

Определение

Принимает решение о том, разрешена ли авторизация на основе указанных требований к утверждениям.

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

Параметры

context
AuthorizationHandlerContext

Контекст авторизации.

requirement
ClaimsAuthorizationRequirement

Требование для оценки.

Возвращаемое значение

Применяется к