Dependency Injection in .NET
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
- Many C#-based examples
- A catalog of DI patterns and anti-patterns
- Using both Microsoft and open source DI frameworks
Tabel of Contents
- A Dependency Injection tasting menu
- A comprehensive example
- DI Containers
- DI patterns
- DI anti-patterns
- DI refactorings
- Object Composition
- Object Lifetime
- Interception
- Castle Windsor
- StructureMap
- Spring.NET
- Autofac
- Unity
- MEF
PART 1 PUTTING DEPENDENCY INJECTION ON THE MAP
PART 2 DI CATALOG
PART 3 DIY DI
PART 4 DI CONTAINERS
List Price: $ 49.99
Price: $ 28.60


Must read for .NET Devs,
I have never written a review for Amazon before but I want to take the time here to give major props to the author for this quality book on Dependency Injection. This is easily in the top 2 of software development books that I have read. (The other being R. Martin’s Agile Principles, Patterns, and Practices in C#)
I have been using DI successfully for several years, yet I was able to learn an enormous amount about the topic from this book. Explanations of DI principles and related patterns such as Decorator really clicked for me. Read this book and you will understand how to develop loosely coupled software components. Excellent code examples in C#. The section on object composition in MS frameworks like ASP.NET MVC and WCF is an extremely valuable resource. The footnotes will direct you to very interesting reading for an even deeper dive. I could go on.
I highly recommend this book for .NET developers.
Was this review helpful to you?
|Execellent introduction to topic and exploration of several IoC frameworks.,
I purhcased this book through the publisher’s early access program, and have been reading it as a PDF.
Have you ever wondered what the difference between an “N-tier” app, and an N-tier app is?
This book is several things. It’s a great introduction into the princples of Dependency Injection, but it’s also a primer on how to apply the concepts in the book while using several popular Dependency Injection/IoC frameworks that are out there today, such as CastleWindsor, StructureMAP, Sprint.NET, Autofac, Unity, and it even has a chapter on MEF, doing so in enough detail that you could become productive in any one of these frameworks in short order.
The author also does a good job of weighing pros and cons of various approaches and leaves you to decide.
This is definately worth the purchase price, and then some.
Another good book from Manning.
Was this review helpful to you?
|