C# 클래스 OxxCommerceStarterKit.Web.Business.Rendering.TemplateCoordinator

상속: IViewTemplateModelRegistrator
파일 보기 프로젝트 열기: episerver/Commerce-Demo-Kit

공개 메소드들

메소드 설명
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