C# Class OxxCommerceStarterKit.Web.Business.PageContextActionFilter

Inheritance: IResultFilter
Datei anzeigen Open project: episerver/Commerce-Demo-Kit

Public Methods

Method Description
GetLanguageInfo ( System.PageData page ) : IEnumerable
OnResultExecuted ( System.Web.Mvc.ResultExecutedContext filterContext ) : void
OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void

Called before an action result executes.

PageContextActionFilter ( IContentLoader contentLoader, UrlResolver urlResolver, ILanguageBranchRepository languageBranchRepository, ISiteSettingsProvider siteConfiguration ) : System

Initializes a new instance of the PageContextActionFilter class.

Protected Methods

Method Description
PopulateChrome ( OxxCommerceStarterKit.Web.Models.PageTypes.HomePage homePage, SettingsBlock settings ) : Chrome
PopulateOpenGraph ( System.Web.Mvc.ResultExecutingContext filterContext, IPageViewModel model ) : void

Private Methods

Method Description
GetFooterMenuContent ( OxxCommerceStarterKit.Web.Models.PageTypes.HomePage settings ) : IEnumerable

Method Details

GetLanguageInfo() public method

public GetLanguageInfo ( System.PageData page ) : IEnumerable
page System.PageData
return IEnumerable

OnResultExecuted() public method

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

OnResultExecuting() public method

Called before an action result executes.
public OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutingContext The filter context.
return void

PageContextActionFilter() public method

Initializes a new instance of the PageContextActionFilter class.
public PageContextActionFilter ( IContentLoader contentLoader, UrlResolver urlResolver, ILanguageBranchRepository languageBranchRepository, ISiteSettingsProvider siteConfiguration ) : System
contentLoader IContentLoader
urlResolver UrlResolver
languageBranchRepository ILanguageBranchRepository
siteConfiguration ISiteSettingsProvider
return System

PopulateChrome() protected method

protected PopulateChrome ( OxxCommerceStarterKit.Web.Models.PageTypes.HomePage homePage, SettingsBlock settings ) : Chrome
homePage OxxCommerceStarterKit.Web.Models.PageTypes.HomePage
settings OxxCommerceStarterKit.Web.Models.PageTypes.SettingsBlock
return OxxCommerceStarterKit.Web.Models.ViewModels.Chrome

PopulateOpenGraph() protected method

protected PopulateOpenGraph ( System.Web.Mvc.ResultExecutingContext filterContext, IPageViewModel model ) : void
filterContext System.Web.Mvc.ResultExecutingContext
model IPageViewModel
return void