Partilhar via


Controller.OnActionExecutionAsync Método

Definição

Chamado antes de o método da ação ser invocado.

public:
 virtual System::Threading::Tasks::Task ^ OnActionExecutionAsync(Microsoft::AspNetCore::Mvc::Filters::ActionExecutingContext ^ context, Microsoft::AspNetCore::Mvc::Filters::ActionExecutionDelegate ^ next);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual System.Threading.Tasks.Task OnActionExecutionAsync (Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member OnActionExecutionAsync : Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext * Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate -> System.Threading.Tasks.Task
override this.OnActionExecutionAsync : Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext * Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate -> System.Threading.Tasks.Task
Public Overridable Function OnActionExecutionAsync (context As ActionExecutingContext, next As ActionExecutionDelegate) As Task

Parâmetros

context
ActionExecutingContext

A ação que executa o contexto.

next
ActionExecutionDelegate

O ActionExecutionDelegate a ser executado. Invoque esse delegado no corpo do OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate) para continuar a execução da ação.

Retornos

Uma instância de Task.

Implementações

Atributos

Aplica-se a