Udostępnij za pośrednictwem


AuthorizationHandler<TRequirement>.HandleRequirementAsync Metoda

Definicja

Podejmuje decyzję, jeśli autoryzacja jest dozwolona na podstawie określonego wymagania.

protected:
 abstract System::Threading::Tasks::Task ^ HandleRequirementAsync(Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^ context, TRequirement requirement);
protected abstract System.Threading.Tasks.Task HandleRequirementAsync (Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, TRequirement requirement);
abstract member HandleRequirementAsync : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext * 'Requirement -> System.Threading.Tasks.Task
Protected MustOverride Function HandleRequirementAsync (context As AuthorizationHandlerContext, requirement As TRequirement) As Task

Parametry

context
AuthorizationHandlerContext

Kontekst autoryzacji.

requirement
TRequirement

Wymaganie do oceny.

Zwraca

Dotyczy