문제

How to check, having an instance of IKernel, in Ninject, if there is specified typed dependency is already declared?

The thing is, I need only to check it, I cannot run the activation plan and actually attempt to create that instance of an object, because doing so is unneccessary.

There is no method that could help me in IKernel interface.

도움이 되었습니까?

해결책

In case of auto-injecting the dependencies, I realized that the object creation is not that bad since it will be consumed by a controller or a service anyway.

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