哪里Microsoft.P​​ractices.ServiceLocation从何而来? [英] Where does Microsoft.Practices.ServiceLocation come from?

查看:95
本文介绍了哪里Microsoft.P​​ractices.ServiceLocation从何而来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何人知道在哪里 Microsoft.P​​ractices.ServiceLocation 从何而来?这是一个命名空间和MS EnterpriseLibrary使用的DLL。诚然,这是一个非常简单的DLL只有极少数的类(使用反射镜),但我无法找到发布的源$ C ​​$ C吧。这不是在企业图书馆项目并没有统一的项目。

Does any one know where Microsoft.Practices.ServiceLocation comes from? This is a namespace and a dll used in MS EnterpriseLibrary. Admittedly it's a very simple dll with just a handful of classes (using reflector), but I can't find published source code for it. It's not in Enterprise Library project and not in Unity project.

所以,没有人知道,如果源$ C ​​$ C本已经出版,在哪里呢?而且它为什么不团结的一部分吗?它是用在其他地方?

So does someone know if the source code for this was published and where? And also why is it not part of Unity? Is it used anywhere else?

推荐答案

据来自: HTTP://commonservicelocator.$c$ cplex.com/

从项目介绍:

通用服务定位器库   包含用于共享接口   位置服务的应用程序和   框架开发人员可以参考一下。   该库提供了一个抽象   在IoC容器中,与服务   定位器。使用程序库使   应用间接访问   而不依赖于硬能力   参考。希望是使用   这个库,第三方应用程序   和框架可以开始利用   IOC /服务定位,而不占用   本身下降到一个特定   实施

The Common Service Locator library contains a shared interface for service location which application and framework developers can reference. The library provides an abstraction over IoC containers and service locators. Using the library allows an application to indirectly access the capabilities without relying on hard references. The hope is that using this library, third-party applications and frameworks can begin to leverage IoC/Service Location without tying themselves down to a specific implementation.

这个抽象是由几个IoC框架上实现了那里,团结就是其中之一。尽管如此,团结是不是该项目的所有者。

This abstraction is implemented by several IoC frameworks out there, and Unity is one of them. nevertheless, Unity is not the owner of that project.

这样 StructureMap 的,例如,提供了实施这些clases的,所以其他框架(如的从模式和放棱镜;实践)可以方便地与其它的IoC框架的工作,而不是被绑定到的团结的本身。

This way StructureMap, for example, provides implementation of those clases, so other frameworks (such as Prism from patterns & practices) can easily work with other IoC frameworks and not be bound to Unity itself.

这篇关于哪里Microsoft.P​​ractices.ServiceLocation从何而来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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