Partager via


IAuthorizationMiddlewareResultHandler.HandleAsync Méthode

Définition

Évalue l’exigence d’autorisation et traite le résultat de l’autorisation.

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

Paramètres

next
RequestDelegate

Intergiciel suivant dans le pipeline d’application. Les implémentations peuvent ne pas l’appeler si l’autorisation n’a pas réussi.

context
HttpContext

L’HttpContextopérateur

policy
AuthorizationPolicy

AuthorizationPolicy pour la ressource .

authorizeResult
PolicyAuthorizationResult

Résultat de l’autorisation.

Retours

S’applique à