Register custom NHibernate Interceptor via Windsor

887 Views Asked by At

I created a simple AuditInterceptor: EmptyInterceptor now I wonder how can I register this new interceptor with my application using Windsor?

1

There are 1 best solutions below

1
Mauricio Scheffer On

Use the NHibernate facility, then register a Castle.Facilities.NHibernateIntegration.IConfigurationContributor implementation that adds your interceptor to the NHibernate.Cfg.Configuration instance (by calling SetInterceptor())