문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top