IAuthorizationMiddlewareResultHandler.HandleAsync Methode

Definition

Wertet die Autorisierungsanforderung aus und verarbeitet das Autorisierungsergebnis.

public:
 System::Threading::Tasks::Task ^ HandleAsync(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy, Microsoft::AspNetCore::Authorization::Policy::PolicyAuthorizationResult ^ authorizeResult);
public System.Threading.Tasks.Task HandleAsync (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult authorizeResult);
abstract member HandleAsync : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authorization.AuthorizationPolicy * Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult -> System.Threading.Tasks.Task
Public Function HandleAsync (next As RequestDelegate, context As HttpContext, policy As AuthorizationPolicy, authorizeResult As PolicyAuthorizationResult) As Task

Parameter

next
RequestDelegate

Die nächste Middleware in der Anwendungspipeline. Implementierungen rufen dies möglicherweise nicht auf, wenn die Autorisierung nicht erfolgreich war.

context
HttpContext

Die HttpContext.

policy
AuthorizationPolicy

Die AuthorizationPolicy für die Ressource.

authorizeResult
PolicyAuthorizationResult

Das Ergebnis der Autorisierung.

Gibt zurück

Gilt für: