Unity 2 - Dependency Injection Using Unity Application Block

Nov 4, 2010 at 12:22 PM

Hi all

    I'm really looking for a good tutorial on how to use the Dependency Injection Using Unity Application Block.

What i'm looking for is a webcast, screencast, book, ebook, paper write by hand that describe in depth the usage of DI with Unity2.

Can someone point me to some good resources?



Nov 5, 2010 at 5:15 AM

Are you looking for coverage of Dependency Injection, which happens to use Unity, or are you already familiar with DI and want to get the Unity specifics?

If you're looking for more general "What is DI?", then the best resource I know of right now is Mark Seeman's upcoming book, Dependency Injection in .NET. It's in Manning's Early Access program right now; I've had a chance to review his draft and it's an excellent coverage of the topic, with a chapter specifically on how Unity implements the DI pattern and what's the right, and wrong, way, to go about it.

If you're looking for more specifics, have you tried the Unity Hands-on-labs? They're included as part of the Entlib HOL package, and cover most of the features of the container.

Hope this helps,