Search code examples
dependency-injectionninjectninject-2

Ninject Kernel Scope


I'm new to Ninject, and I was wondering if the scope of the kernel should be 1 per application. So should I treat the kernel as a singleton?

Thanks.


Solution

  • Yes, you should. More precisely - You should have one root container. It's OK to create context specific subcontainers.