C# Класс 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.
Наследование: IResultFilter
Показать файл Открыть проект

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

Метод Описание
OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void
OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
PageContextActionFilter ( PageViewContextFactory contextFactory ) : System.Web.Mvc

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

OnResultExecuted() публичный метод

public OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutedContext
Результат void

OnResultExecuting() публичный метод

public OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutingContext
Результат void

PageContextActionFilter() публичный метод

public PageContextActionFilter ( PageViewContextFactory contextFactory ) : System.Web.Mvc
contextFactory PageViewContextFactory
Результат System.Web.Mvc