IAuthorizationMiddlewareResultHandler.HandleAsync Método

Definição

Avalia o requisito de autorização e processa o resultado da autorização.

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

Parâmetros

next
RequestDelegate

O próximo middleware no pipeline do aplicativo. As implementações podem não invocar isso se a autorização não tiver sido bem-sucedida.

policy
AuthorizationPolicy

O AuthorizationPolicy para o recurso.

authorizeResult
PolicyAuthorizationResult

O resultado da autorização.

Retornos

Aplica-se a