开发者

How do I debug a Unity Container "Resolve"?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜