Click or drag to resize
WidgetControllerTPropertiesType Constructor (IWidgetPropertiesRetrieverTPropertiesType, ICurrentPageRetriever)

Note: This API is now obsolete.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
[ObsoleteAttribute("Use WidgetController(IComponentPropertiesRetriever<TPropertiesType> propertiesRetriever, ICurrentPageRetriever currentPageRetriever) constructor instead.")]
protected WidgetController(
	IWidgetPropertiesRetriever<TPropertiesType> propertiesRetriever,
	ICurrentPageRetriever currentPageRetriever
)

Parameters

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