November Happy Hour will be moved to Thursday December 5th.

Interface IContentTypeModelScanner

Component that scans for and register content models.

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public interface IContentTypeModelScanner

Properties

ContentTypes

Gets content types in the system.

Declaration
IEnumerable<Type> ContentTypes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Type>

Methods

GetProperties(ContentTypeModel)

Gets properties on the modelType.

Declaration
IEnumerable<PropertyInfo> GetProperties(ContentTypeModel modelType)
Parameters
Type Name Description
ContentTypeModel modelType

The model to get properties from.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo>

RegisterModels()

Registers the models.

Declaration
IList<Task> RegisterModels()
Returns
Type Description
System.Collections.Generic.IList<System.Threading.Tasks.Task>

Sync(Boolean)

Creates ContentTypeModels from the relevant types stored in the IScannedTypeRepository.

Declaration
IList<Task> Sync(bool forceCommit)
Parameters
Type Name Description
System.Boolean forceCommit

if set to true then stores in repository.

Returns
Type Description
System.Collections.Generic.IList<System.Threading.Tasks.Task>

A list of started tasks.

Remarks

The registration is complete when all returned task are completed.

Extension Methods