C# Класс Rebel.Cms.Web.Mvc.ActionInvokers.ControllerExtenderActionInvoker

An action invoker allowing Controller Extender actions to execute.
Наследование: System.Web.Mvc.ControllerActionInvoker
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

FindAction() защищенный Метод

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
Результат System.Web.Mvc.ActionDescriptor

InvokeAction() публичный Метод

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
Результат bool