Controller.OnActionExecutionAsync Method

Definition

Called before the action method is invoked.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual System.Threading.Tasks.Task OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next);

Parameters

context
ActionExecutingContext

The action executing context.

next
ActionExecutionDelegate

The ActionExecutionDelegate to execute. Invoke this delegate in the body of OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate) to continue execution of the action.

Returns

A Task instance.

Implements

Attributes

Applies to