Class BlockScannerExtension
Extends content registration with block specific extensions.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration(typeof(ContentScannerExtension))]
public class BlockScannerExtension : ContentScannerExtension
Constructors
BlockScannerExtension(ITypeReferenceAnalyzer)
Initializes a new instance of the BlockScannerExtension class.
Declaration
public BlockScannerExtension(ITypeReferenceAnalyzer circularReferenceValidator)
Parameters
Type | Name | Description |
---|---|---|
ITypeReferenceAnalyzer | circularReferenceValidator | The circular reference validator. |
BlockScannerExtension(TypeReferenceAnalyzer)
Initializes a new instance of the BlockScannerExtension class.
Declaration
[Obsolete("Use alternative constructor")]
public BlockScannerExtension(TypeReferenceAnalyzer circularReferenceValidator)
Parameters
Type | Name | Description |
---|---|---|
TypeReferenceAnalyzer | circularReferenceValidator | The circular reference validator. |
Methods
AssignValuesToModel(ContentTypeModel)
Creates block type models recursive and adds them to the collection.
Declaration
public override void AssignValuesToModel(ContentTypeModel typeModel)
Parameters
Type | Name | Description |
---|---|---|
ContentTypeModel | typeModel | The type model. |
Overrides
Validate(IEnumerable<ContentTypeModel>)
Override to add custom validation.
Declaration
public override void Validate(IEnumerable<ContentTypeModel> typeModels)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ContentTypeModel> | typeModels | The type models. |