C# Class Alloy.Business.PageContextActionFilter

Intercepts actions with view models of type IPageViewModel and populates the view models Layout and Section properties.
This filter frees controllers for pages from having to care about common context needed by layouts and other page framework components allowing the controllers to focus on the specifics for the page types and actions that they handle.
Inheritance: IResultFilter
Show file Open project: episerver/EPiTranslateFlowDemo

Public Methods

Method Description
OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void
OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
PageContextActionFilter ( PageViewContextFactory contextFactory ) : System.Web.Mvc

Method Details

OnResultExecuted() public method

public OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutedContext
return void

OnResultExecuting() public method

public OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutingContext
return void

PageContextActionFilter() public method

public PageContextActionFilter ( PageViewContextFactory contextFactory ) : System.Web.Mvc
contextFactory PageViewContextFactory
return System.Web.Mvc