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
Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class ContentDataInterceptor : Object, 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
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