Click or drag to resize
PageTemplateControllerTPropertiesType Constructor (IPageTemplatePropertiesRetrieverTPropertiesType, ICurrentPageRetriever)

Note: This API is now obsolete.

Namespace: Kentico.PageBuilder.Web.Mvc.PageTemplates
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use custom constructor to have Kentico.PageBuilder.Web.Mvc.IPageBuilderDataContextRetriever injected to retrieve context of the current page. Moreover, have Kentico.PageBuilder.Web.Mvc.IPageTemplatePropertiesRetriever injected to retrieve properties of the page template.")]
protected PageTemplateController(
	IPageTemplatePropertiesRetriever<TPropertiesType> propertiesRetriever,
	ICurrentPageRetriever currentPageRetriever
)

Parameters

propertiesRetriever
Type: Kentico.PageBuilder.Web.Mvc.PageTemplatesIPageTemplatePropertiesRetrieverTPropertiesType
Retriever for page template properties.
currentPageRetriever
Type: Kentico.PageBuilder.Web.MvcICurrentPageRetriever
Retriever for current page where the page template is used.
Remarks
Use this constructor for tests to handle dependencies.
See Also