Class ViewRegistrator
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Scan views for partial block views.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(IViewRegistrator))]
public class ViewRegistrator : IViewRegistrator
Constructors
ViewRegistrator(ITypeScannerLookup, IContentTypeModelScanner[], ITemplateRepository, CachingViewEnginesWrapper)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ViewRegistrator class.
Declaration
public ViewRegistrator(ITypeScannerLookup typeScannerLookup, IContentTypeModelScanner[] contentTypeModelScanner, ITemplateRepository templateModelRepository, CachingViewEnginesWrapper viewEngineWrapper)
Parameters
Type | Name | Description |
---|---|---|
ITypeScannerLookup | typeScannerLookup | The type scanner lookup. |
IContentTypeModelScanner[] | contentTypeModelScanner | The content type model scanner. |
ITemplateRepository | templateModelRepository | The render template repository. |
CachingViewEnginesWrapper | viewEngineWrapper | The view engine wrapper. |
Methods
RegisterTemplate(Type, TemplateModel)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Called when a template given by TemplateModel is registered for a System.Type.
Declaration
protected virtual void RegisterTemplate(Type modelType, TemplateModel templateModel)
Parameters
Type | Name | Description |
---|---|---|
System.Type | modelType | Type of the model. |
TemplateModel | templateModel | The template model. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException |
RegisterViews(HttpContextBase)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Registers the scanned views in the TemplateModelRepository.
Declaration
public virtual void RegisterViews(HttpContextBase contextBase)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | contextBase | The context base. |