Sdílet prostřednictvím


Controller.OnActionExecutionAsync Metoda

Definice

Volána před vyvolání metody action.

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

Parametry

context
ActionExecutingContext

Akce, která spouští kontext.

next
ActionExecutionDelegate

Příkaz ActionExecutionDelegate , který se má spustit. Pokud chcete pokračovat v provádění akce, vyvolejte OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate) v těle tohoto delegáta.

Návraty

Instance Task .

Implementuje

Atributy

Platí pro