Class RenderTemplateScanner
Default implementation of IRender
Inheritance
Implements
Inherited Members
Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(IRenderTemplateScanner))]
public class RenderTemplateScanner : IRenderTemplateScanner
Constructors
RenderTemplateScanner(ITemplatePathResolver, ITypeScannerLookup, ITemplateRepository, IModuleResourceResolver)
Initializes a new instance of the Render
Declaration
public RenderTemplateScanner(ITemplatePathResolver templatePathResolver, ITypeScannerLookup typeScannerLookup, ITemplateRepository templateModelRepository, IModuleResourceResolver resourcePathResolver)
Parameters
Type | Name | Description |
---|---|---|
ITemplate |
templatePathResolver | The template path resolver. |
IType |
typeScannerLookup | The scanned type repository. |
ITemplate |
templateModelRepository | The render template repository. |
IModule |
resourcePathResolver | The resource path resolver. |
Methods
GetRenderTypes()
Get a list of all types matching the basic rendering template requirements.
Declaration
protected virtual IEnumerable<Type> GetRenderTypes()
Returns
Type | Description |
---|---|
System. |
A list of non-abstract types that implements IRender |
RegisterScannedRenders()
Registers any render templates found by type scanner in the ITemplate
Declaration
public virtual void RegisterScannedRenders()
RegisterTemplate(Type, TemplateModel[])
Called to register a model and the templates
Declaration
protected virtual void RegisterTemplate(Type modelType, params TemplateModel[] templates)
Parameters
Type | Name | Description |
---|---|---|
System. |
modelType | The model type |
Template |
templates | A list of templates |