开发者

Open source projects using IoC

I am looking for good real-world examples of IoC in actual .NET software projects that use any of the common (or even uncommon) IoC containers to resolve dependency graphs more complex than two or three abstractions. Most examples and explanations are intentionally kept simple and rarely use more than one concept at a time, which makes it difficult to get a good idea of when to use what special construct (e.g. Abstract Factory, Facade, Aggregate Service etc.) or how to use object lifetime management in practice.

I was hoping to find project references on the respective IoC containers' web sites, but so far have been unsuccessful. There are a few questions here on that topic, but those are older and don't have a lot of useful answers.

Edit: If you vote for closing this question, please at least leave a comment stating why you (obviously) think it's not a valid question here and where els开发者_如何转开发e you think I should ask this rather than on SO.


Here's a demo application I use to demonstrate various aspects of DI in .NET, including Composition Root, Convention over Configuration, etc.

https://github.com/ploeh/Booking

While it's still demo code, it's intentionally created with a certain level of complexity to demonstrate exactly those things.


There are two applications one for Silverlight and the other for ASP.NET MVC that we have created to show how to use Castle Windsor container and demo some of its feature sets. Read more about it in the documentations.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜