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

Class ContentDataInterceptor

The ModelTypeInterceptor class implements ContentDataInterceptor interface. This class is a runtime proxy which intercept interceptable properties (AutoGenerate, public, virtual and contains both getter and setter accessor)

Inheritance
System.Object
ContentDataInterceptor
Implements
Castle.DynamicProxy.IInterceptor
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: 11.20.7
Syntax
[ServiceConfiguration(typeof(ContentDataInterceptor))]
public class ContentDataInterceptor : IInterceptor
Remarks

When used with model types this class is scoped singleton per model type for performance reasons

Constructors

ContentDataInterceptor()

Initializes a new instance of the ContentDataInterceptor class.

Declaration
[Obsolete("Use alternative constructor")]
public ContentDataInterceptor()

ContentDataInterceptor(ContentDataInterceptorHandler)

Initializes a new instance of the ContentDataInterceptor class.

Declaration
public ContentDataInterceptor(ContentDataInterceptorHandler contentDataInterceptorHandler)
Parameters
Type Name Description
ContentDataInterceptorHandler contentDataInterceptorHandler

The content data interceptor handler.

Methods

HandleGetterAccessor(IInvocation, PropertyData)

Handles the getter accessor.

Declaration
protected virtual void HandleGetterAccessor(IInvocation invocation, PropertyData propertyData)
Parameters
Type Name Description
Castle.DynamicProxy.IInvocation invocation

The invocation.

PropertyData propertyData

The property data.

HandleSetterAccessor(IInvocation, PropertyData)

Handles the setter accessor.

Declaration
protected virtual void HandleSetterAccessor(IInvocation invocation, PropertyData propertyData)
Parameters
Type Name Description
Castle.DynamicProxy.IInvocation invocation

The invocation.

PropertyData propertyData

The property data.

Intercept(IInvocation)

Intercepts the specified invocation.

Declaration
public virtual void Intercept(IInvocation invocation)
Parameters
Type Name Description
Castle.DynamicProxy.IInvocation invocation

The invocation.

Implements

Castle.DynamicProxy.IInterceptor

Extension Methods