如何各大C#DI / IoC的框架比较? [英] How do the major C# DI/IoC frameworks compare?

查看:1115
本文介绍了如何各大C#DI / IoC的框架比较?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前步入神圣的战争领土的风险,这些是什么流行的DI /国际奥委会框架的优势和劣势,并且可以一身轻松地认为是最好的? ..:

At the risk of stepping into holy war territory, What are the strengths and weaknesses of these popular DI/IoC frameworks, and could one easily be considered the best? ..:


  • Ninject

  • 统一

  • Castle.Windsor

  • Autofac

  • StructureMap

还有没有其他的DI / IoC的框架C#,我这里没有列出?

Are there any other DI/IoC Frameworks for C# that I haven't listed here?

在我的用例的情况下,我建立一个客户端的WPF应用程序和WCF / SQL服务基础架构,易用性(特别是在明确和简洁的语法方面),一致的文档,良好的社会支持和性能在我的选择的重要因素。

In context of my use case, I'm building a client WPF app, and a WCF/SQL services infrastructure, ease of use (especially in terms of clear and concise syntax), consistent documentation, good community support and performance are all important factors in my choice.

在资源和重复引用问题似乎是过时了,可有人用所有这些框架挺身而出,并提供一些真正的洞察力?知识

The resources and duplicate questions cited appear to be out of date, can someone with knowledge of all these frameworks come forward and provide some real insight?

我认识到,对这个问题最意见可能有偏见,但我希望有人已研究所有这些框架的时间,至少有一个普遍客观的比较。

I realise that most opinion on this subject is likely to be biased, but I am hoping that someone has taken the time to study all these frameworks and have at least a generally objective comparison.

我很愿意做我自己的调查,如果以前没有做过,但我认为这是一件至少有几个人已经做了。

I am quite willing to make my own investigations if this hasn't been done before, but I assumed this was something at least a few people had done already.

如果你有一个以上的DI / IoC容器的经验,请排列和总结这些的利弊,谢谢。这不是在发现所有的人都做,我正在寻找流行的(和活动)框架之间的比较不起眼的小容器的练习。

If you do have experience with more than one DI/IoC container, please rank and summarise the pros and cons of those, thank you. This isn't an exercise in discovering all the obscure little containers that people have made, I'm looking for comparisons between the popular (and active) frameworks.

推荐答案

虽然COM prehensive回答这个问题,占用了数百我的书,下面是我还在上进行快速对比图:

While a comprehensive answer to this question takes up hundreds of pages of my book, here's a quick comparison chart that I'm still working on:

这篇关于如何各大C#DI / IoC的框架比较?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆