MEF是一个依赖注入框架?是一个、框架、MEF

由网友(我不会发光怎暖你心i)分享简介:的.NET 4.0最近公布的管理可扩展性框架(MEF) - 它是一个依赖注入框架?微软会统一的模式与实践将过时4.0?如何MEF比较喜欢统一的框架?The recently announced managed extensibility framework (MEF) of .NET 4.0 - is it a de...

的.NET 4.0最近公布的管理可扩展性框架(MEF) - 它是一个依赖注入框架?微软会统一的模式与实践将过时4.0?如何MEF比较喜欢统一的框架?

The recently announced managed extensibility framework (MEF) of .NET 4.0 - is it a dependency injection framework? Will Microsoft Unity from Patterns and Practices be obsolete in 4.0 ? How does MEF compare to a framework like Unity?

推荐答案

具体表现在PDC 2008年度第二次主题演讲由Scott Guthrie的解决,MEF有很多事情需要做的事情一样延伸Visual Studio 2008和其他应用程序,而不必使用所有的COM和旧技术...延伸VS2008文本编辑的一个很好的示范结果显示等等。开始大约一个小时15分钟到第2天主题演讲( http://www.microsoftpdc.com ),你会得到直接的信息,但基本上如果你要去构建一个应用程序,内置的,可以很容易被发现extensiblity点,并支持查找扩展的,然后MEF是你想要什么。团结就是你想要的高质量IoC容器,做DI还有其他的解决方案在那里,但与企业库大,易于集成的东西。

Specifically addressed in the PDC 2008 2nd Keynote by Scott Guthrie, MEF has a lot more to do with things like extending Visual Studio 2008 and other applications, without having to use all the COM and older technologies... A very good demonstration of extending the text edition in VS2008 was shown among other things. Start about an hour and 15 minutes into the 2nd day keynote (http://www.microsoftpdc.com) and you'll get direct information, but basically if you are going to "build an application with built in extensiblity points that can easily be discovered, and which supports discovery of extensions," then MEF is what you want. UNITY is what you want for a high-quality IoC container that does DI as well as the other solutions out there but has great and easy integration with the Enterprise Library.

对于团结在EL4.0(现为4.1 - http://msdn.microsoft.com/en-us/library/dd203099.aspx)它实际上是一个IoC容器,它位于第2版ObjectBuilder的顶部和EL4.1具有可扩展点统一的各种EL应用程序块的配置与统一。

Regarding Unity in the EL4.0 (now 4.1 -- http://msdn.microsoft.com/en-us/library/dd203099.aspx) its actually a IoC that sits on top of the version 2 ObjectBuilder and the EL4.1 has extensibility points for unifying the configuration of various EL application blocks with Unity.

MEF与统一就像比较苹果和橘子。一些伟大的和具体的播客/网络广播(S)描述团结全在这里,我强烈建议:

MEF vs. Unity is like comparing apples to oranges. Some great and specific podcast/webcast(s) that describe UNITY in full are here, which I highly recommend:

DotNetRocks显示#393 http://www.dotnetrocks.com/default.aspx?showNum=393 DNR.tv显示#126 http://www.dnrtv.com/default.aspx?showNum=126

DotNetRocks Show #393 http://www.dotnetrocks.com/default.aspx?showNum=393 DNR.tv Show #126 http://www.dnrtv.com/default.aspx?showNum=126

阅读全文

相关推荐

最新文章