开发者

How do I debug a Unity Container "Resolve"?

开发者 https://www.devze.com 2022-12-10 15:48 出处:网络
I\'m using the MS Unity container to do dependency injection, but a \"Resolve\" is returning unexpected results.

I'm using the MS Unity container to do dependency injection, but a "Resolve" is returning unexpected results.

Is there an way I can debug this resolution? It would be great if I could view what Types/Instances are registered in开发者_开发百科 the container, but I can't see where this is stored when using QuickWatch. It would also be useful if I could get the container to output some debug Traces.

Any suggestions?


The source code for the Unity framework is available for download at http://unity.codeplex.com. If you include it in your solution and reference the Unity projects instead of the compiled DLLs in your projects, you will be able to debug through the Unity source code.

0

精彩评论

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

关注公众号