1
我创建了一个简单的AuditInterceptor:EmptyInterceptor现在我想知道如何使用Windsor在我的应用程序中注册这个新的拦截器?通过Windsor注册自定义NHibernate拦截器
我创建了一个简单的AuditInterceptor:EmptyInterceptor现在我想知道如何使用Windsor在我的应用程序中注册这个新的拦截器?通过Windsor注册自定义NHibernate拦截器
使用NHibernate的设施,然后注册一个Castle.Facilities.NHibernateIntegration.IConfigurationContributor
实现,将您拦截到NHibernate.Cfg.Configuration
实例(通过调用SetInterceptor()
)
感谢@mausch你知道是否可以使用windsor.boo注册? – 2009-08-25 02:03:02
我不这么认为... – 2009-08-26 15:17:51