我需要 Microsoft.Practices.Unity 和 ObjectBuilder2 源
我在哪里可以获得这两个程序集的源代码?我对它们有一些问题,需要在它们内部进行调试。
基本上我遇到的问题是我注册了一个类
container.RegisterType<Interface, Type>()
,在某些情况下我得到了一个新实例,而在其他情况下我得到了该类的旧实例。
编辑: 我想通了,我只需要将 Prism 项目中的引用更改为新的 Unity(DOH!!!) 愚蠢的我...
好吧,你没问题,感谢你让我大开眼界并快速给出答案。
现在是调试时间!!!
Where can I get the sources for these 2 assemblies? I have some issues with them an would need to debug inside them.
Basically the problem i have is that i register a class with
container.RegisterType<Interface, Type>()
and in some cases i get a new instance, and in other cases i get an old instance of the class.
Edit:
I figured it out, i only had to change the references in the Prism projects to the new Unity (DOH!!!) Stupid me...
Well, you were all right, and thanks for opening my eyes and for the quick answers.
NOW IT'S DEBUGGING TIME!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在这里获取源代码:http://www.codeplex.com/unity
You can get the source here: http://www.codeplex.com/unity
我将其作为企业库的一部分
http://www.microsoft.com/downloads/details.aspx?FamilyId=1643758B-2986-47F7-B529-3E41584B6CE5&displaylang=en
这是源代码管理签入列表。您可以下载与您拥有的版本匹配的版本。
http://unity.codeplex.com/SourceControl/
寻找......
I got it as part of the Enterprise Library
http://www.microsoft.com/downloads/details.aspx?FamilyId=1643758B-2986-47F7-B529-3E41584B6CE5&displaylang=en
Here's the source control checkin list. You can download whichever version matches the one you have.
http://unity.codeplex.com/SourceControl/
looking....
你在这个网站上尝试过吗? http://unity.codeplex.com/
Have you tried on this site? http://unity.codeplex.com/