开发者

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 开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜