AuthorizationMiddlewareResultHandler.HandleAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Évalue l’exigence d’autorisation et traite le résultat de l’autorisation.
public:
virtual 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
override this.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.