Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个简单的 AuditInterceptor: EmptyInterceptor 现在我想知道如何使用 Windsor 在我的应用程序中注册这个新的拦截器?
使用 NHibernate 工具,然后注册一个Castle.Facilities.NHibernateIntegration.IConfigurationContributor将拦截器添加到NHibernate.Cfg.Configuration实例的实现(通过调用SetInterceptor())
Castle.Facilities.NHibernateIntegration.IConfigurationContributor
NHibernate.Cfg.Configuration
SetInterceptor()