Book description
SummaryDependency 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
PART 1 PUTTING DEPENDENCY INJECTION ON THE MAPA Dependency Injection tasting menu
A comprehensive example
DI Containers
PART 2 DI CATALOGDI patterns
DI anti-patterns
DI refactorings
PART 3 DIY DIObject Composition
Object Lifetime
Interception
PART 4 DI CONTAINERSCastle Windsor
StructureMap
Spring.NET
Autofac
Unity
MEF
Table of contents
- Copyright
- Dedication
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this Book
- About the Cover Illustration
- Part 1. Putting Dependency Injection on the map
- Chapter 1. A Dependency Injection tasting menu
- Chapter 2. A comprehensive example
- Chapter 3. DI Containers
- Part 2. DI catalog
- Chapter 4. DI patterns
- Chapter 5. DI anti-patterns
- Chapter 6. DI refactorings
- Part 3. DIY DI
- Chapter 7. Object Composition
- Chapter 8. Object Lifetime
- Chapter 9. Interception
- Part 4. DI Containers
- Chapter 10. Castle Windsor
- Chapter 11. StructureMap
- Chapter 12. Spring.NET
- Chapter 13. Autofac
- Chapter 14. Unity
- Chapter 15. MEF
- Resources
- Glossary
- Appendix. Glossary conceptual map
- Appendix. Charts
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Dependency Injection in .NET
- Author(s):
- Release date: September 2011
- Publisher(s): Manning Publications
- ISBN: 9781935182504
You might also like
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
.NET Core in Action
Summary .NET Core in Action shows .NET developers how to build professional software applications with .NET …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …