I am trying to implement nhibernate transaction handling through Interceptors and couldn’t figure out how to register the interface through fluent mechanism.
I see a
Component.For<ServicesInterceptor>().Interceptors
but not sure how to use it. Can someone help me out? This example seemed a little complex.
You do it in two steps:
Interceptorsmethod on fluent API you specify which of the registered interceptors (by key, or type) you want to intercept this component with:See the documentation for more details.