C# Class Rebel.Cms.Web.Mvc.ActionInvokers.ControllerExtenderActionInvoker

An action invoker allowing Controller Extender actions to execute.
Inheritance: System.Web.Mvc.ControllerActionInvoker
Datei anzeigen Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
InvokeAction ( System.Web.Mvc.ControllerContext controllerContext, string actionName ) : bool

Override the InvokeAction method to check if the actionDescriptor is an ExtenderActionDescriptor if it is, we will actually execute the controller for the extender action seperately so that everything is wired up correctly and all of the ActionFilters are executed.

Protected Methods

Method Description
FindAction ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ControllerDescriptor controllerDescriptor, string actionName ) : System.Web.Mvc.ActionDescriptor

Checks if the action to execute exists on the main controller, if not checks any extender controllers for matching/executable actions and returns them.

Method Details

FindAction() protected method

Checks if the action to execute exists on the main controller, if not checks any extender controllers for matching/executable actions and returns them.
protected FindAction ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ControllerDescriptor controllerDescriptor, string actionName ) : System.Web.Mvc.ActionDescriptor
controllerContext System.Web.Mvc.ControllerContext
controllerDescriptor System.Web.Mvc.ControllerDescriptor
actionName string
return System.Web.Mvc.ActionDescriptor

InvokeAction() public method

Override the InvokeAction method to check if the actionDescriptor is an ExtenderActionDescriptor if it is, we will actually execute the controller for the extender action seperately so that everything is wired up correctly and all of the ActionFilters are executed.
public InvokeAction ( System.Web.Mvc.ControllerContext controllerContext, string actionName ) : bool
controllerContext System.Web.Mvc.ControllerContext
actionName string
return bool