Allows user code to inspect and/or change property values before they are written and after they are read from the database

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public interface IInterceptor
Visual Basic
Public Interface IInterceptor
Visual C++
public interface class IInterceptor

Remarks

There might be a single instance of IInterceptor for a SessionFactory, or a new instance might be specified for each ISession. Whichever approach is used, the interceptor must be serializable if the ISession is to be serializable. This means that SessionFactory -scoped interceptors should implement ReadResolve().

The ISession may not be invoked from a callback (nor may a callback cause a collection or proxy to be lazily initialized).

See Also