开发者

Which one is simpler between Ninject and StructureMap?

开发者 https://www.devze.com 2023-02-06 09:48 出处:网络
I was wondering which one is simpler between Ninject and StructureMap ? Is there anything i should be aware when using them开发者_如何学JAVA ?

I was wondering which one is simpler between Ninject and StructureMap ? Is there anything i should be aware when using them开发者_如何学JAVA ?

Thanks.


IMHO, Ninject is probably easier to get started with if you've never done any DI before, but I've found StructureMap to be more extensible.

Whichever container you opt-for, try and follow the usual advice, and wrap it behind interfaces (not the little 'i') that you own. Embedding any 3rd party component deep into your code is usually asking for trouble.

At the end of the day, it's down to personal taste.

0

精彩评论

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