Click or drag to resize
ComponentControllerTPropertiesType Constructor (IComponentPropertiesRetrieverTPropertiesType, ICurrentPageRetriever)

Note: This API is now obsolete.

Namespace: Kentico.PageBuilder.Web.Mvc.Internal
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 service injected to retrieve context of the current page.")]
protected ComponentController(
	IComponentPropertiesRetriever<TPropertiesType> propertiesRetriever,
	ICurrentPageRetriever currentPageRetriever
)

Parameters

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