C# Класс OxxCommerceStarterKit.Web.Business.Rendering.TemplateCoordinator

Наследование: IViewTemplateModelRegistrator
Показать файл Открыть проект

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

Метод Описание
BlockPath ( string fileName ) : string
OnTemplateResolved ( object sender, TemplateResolverEventArgs args ) : void
PagePartialPath ( string fileName ) : string
Register ( TemplateModelCollection viewTemplateModelRegistrator ) : void

Registers renderers/templates which are not automatically discovered, i.e. partial views whose names does not match a content type's name.

Using only partial views instead of controllers for blocks and page partials has performance benefits as they will only require calls to RenderPartial instead of RenderAction for controllers. Registering partial views as templates this way also enables specifying tags and that a template supports all types inheriting from the content type/model type.

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

BlockPath() публичный статический Метод

public static BlockPath ( string fileName ) : string
fileName string
Результат string

OnTemplateResolved() публичный статический Метод

public static OnTemplateResolved ( object sender, TemplateResolverEventArgs args ) : void
sender object
args TemplateResolverEventArgs
Результат void

PagePartialPath() публичный статический Метод

public static PagePartialPath ( string fileName ) : string
fileName string
Результат string

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

Registers renderers/templates which are not automatically discovered, i.e. partial views whose names does not match a content type's name.
Using only partial views instead of controllers for blocks and page partials has performance benefits as they will only require calls to RenderPartial instead of RenderAction for controllers. Registering partial views as templates this way also enables specifying tags and that a template supports all types inheriting from the content type/model type.
public Register ( TemplateModelCollection viewTemplateModelRegistrator ) : void
viewTemplateModelRegistrator TemplateModelCollection
Результат void