MVC and pipelines
This topic describes the pipelines and the processors Sitecore MVC uses.
MVC-specific processors
Some standard Sitecore pipelines have processors that are specifically used for Sitecore MVC. This table shows what they are:
Pipeline |
Processors |
---|---|
Initialize |
|
HttpBeginRequest |
|
MVC-specific pipelines
The following table lists all of the Sitecore pipelines that are only used by MVC:
Pipeline |
Description | |
---|---|---|
RequestBegin |
This is the first action of an MVC request after the request has been passed down from the main A PageContext is created and assigned to the current thread. If the request is a form post, the associated form handler (if any) is executed. | |
RequestEnd |
This is the last action of an MVC request. This pipeline is not currently used. | |
CreateController |
This pipeline is called by the If the requested item ( | |
ActionExecuting |
This pipeline executes before an MVC controller action is executed. This pipeline is not currently used. | |
ActionExecuted |
This pipeline executes after an MVC controller action is executed. This pipeline is not currently used. | |
ResultExecuting |
This pipeline executes before an MVC result is executed. This pipeline is not currently used. | |
ResultExecuted |
This pipeline executes after an MVC result is executed. This pipeline is not currently used. | |
Exception |
This pipeline executes after the MVC runtime catches an unhandled exception. This pipeline is not currently used. If you attach a custom processor to this pipeline, this processor should set the | |
GetPageItem |
This pipeline resolves the item that was requested using route information. If the item cannot be resolved from the route, | |
BuildPageDefinition |
This pipeline builds the initial | |
GetPageRendering |
This pipeline selects the rendering to use as the root rendering of the page for creating the output of the current request. Currently, the root rendering is selected based solely on the current device ( | |
GetRenderer |
This pipeline transforms an abstract rendering definition (rendering) into an object that can render output back to the client (renderer). | |
GetModel |
This pipeline creates the model object to use when rendering an MVC view. This is typically a ASP.NET MVC 3 Razor view. If the pipeline returns no model, the view receives an instance of | |
RenderPlaceholder |
This pipeline is called as part of the By default, the pipeline finds all renderings matching the specified placeholder name in the current | |
RenderRendering |
The pipeline renders the specified rendering. This pipeline handles caching and sets up the |