Dependency Injection in .NET

Mark Seemann
Foreword by Glenn Block

October 2011 | 584 pages
ISBN: 9781935182504

$49.99 pBook + eBook (includes PDF, ePub, and Kindle)
$39.99 eBook only (includes PDF, ePub, and Kindle)

Browse all our mobile format eBooks.

Resources

 Look Inside Resources Downloads

SUMMARY

Dependency Injection in .NET presents core DI patterns in plain C# so you'll fully understand how DI works, covers integration with standard Microsoft technologies like ASP.NET MVC, and teaches you to use DI frameworks like Structure Map, Castle Windsor, and Unity.

ABOUT THE TECHNOLOGY

Dependency Injection is a great way to reduce tight coupling between software components. Instead of hard-coding dependencies, such as specifying a database driver, you inject a list of services that a component may need. The services are then connected by a third party. This technique enables you to better manage future changes and other complexity in your software.

ABOUT THIS BOOK

Dependency Injection in .NET introduces DI and provides a practical guide for applying it in .NET applications. The book presents the core patterns in plain C#, so you'll fully understand how DI works. Then you'll learn to integrate DI with standard Microsoft technologies like ASP.NET MVC, and to use DI frameworks like StructureMap, Castle Windsor, and Unity. By the end of the book, you'll be comfortable applying this powerful technique in your everyday .NET development.

This book is written for C# developers. No previous experience with DI or DI frameworks is required.

WHAT'S INSIDE

ABOUT THE AUTHOR

Mark Seemann is a software architect living in Copenhagen. Previously a developer and architect at Microsoft, Mark is now an independent consultant.

WHAT REVIEWERS ARE SAYING

“Dependency Injection - The best thing I like about the book is how it compares IoC containers with code samples from different platforms. Being from the Java background and currently a dot net consultant, I truly appreciate the value it provides to understand the underlying concept regardless of the platform. Must read for all developers and a great read for those who have never worked on more than one platform. The book is simple and not bulky but covers dependency injection in totality.”
—Chander Dhall

“This book explains DI in a way that I've not seen before. The author takes the time to explain the benefits and to provide the reader with the right amount of context about the problem domain so that the book doesnt need to spend all of its time being technical. Of all the books that I've seen on the subject, this is the first one that has actually made me say to myself... “I'm going to start using DI”... and I did start... and I'm glad I did!”
—Darren Neimke, Microsoft MVP