Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top