Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface ITemplateScanner

Scanner that will find and register templates in the TemplateModelRepository.

Namespace: EPiServer.Scanning.Internal
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public interface ITemplateScanner

Methods

RegisterTemplates(IEnumerable<Assembly>)

Scan specified assemblies (or all assemblies if no specific assemblies are specified) for templates and register found templates with with the TemplateModelRepository.

Declaration
void RegisterTemplates(IEnumerable<Assembly> assembliesToScan)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assembliesToScan

Specifies which assemblies to scan. If not specified all assemblies are scanned

Extension Methods