Question

I'm following the tutorial Dependency injection and Unit of Work using Castle. I'm using lightinject in my project, so I'm using ICompositionRoot instead of IWindsorInstaller.

The problem is that I can't find a method similar to Kernel_ComponentRegistered to add the interceptor. How can I do that in lightinject?

Was it helpful?

Solution

It is a little difficult to answer without an example to relate my answer to, but if you add the LightInject.Interception package, you will have access to the Intercept method that makes it possible to add the interceptors.

Best regards Bernhard Richter

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top