开发者

Ninject Kernel Scope

开发者 https://www.devze.com 2022-12-28 11:57 出处:网络
I\'m new to Ninject, and I was wondering if the scope of the kernel should be 1 per application. So should I 开发者_C百科treat the kernel as a singleton?

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

Thanks.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消