Dependency Injection Principles, Practices, and Patterns teaches you to use DI to reduce hard-coded dependencies between application components. You'll start by learning what DI is and what types of applications will benefit from it. Then, you'll work through concrete scenarios using C# and the .NET framework to implement DI in your own projects. As you dive into the thoroughly-explained examples, you'll develop a foundation you can apply to any of the many DI libraries for .NET and .NET Core.
about the technology
Dependency Injection (DI) is a great way to reduce tight coupling between software components. Instead of hard-coding dependencies, such as specifying a database driver, you make those connections through a third party. Central to application frameworks like ASP.NET Core, DI enables you to better manage changes and other complexity in your software.
about the book
Dependency Injection Principles, Practices, and Patterns is a revised and expanded edition of the bestselling classic Dependency Injection in .NET. It teaches you DI from the ground up, featuring relevant examples, patterns, and anti-patterns for creating loosely coupled, well-structured applications. The well-annotated code and diagrams use C# examples to illustrate principles that work flawlessly with modern object-oriented languages and DI libraries.
what's inside
Refactoring existing code into loosely coupled code
DI techniques that work with statically typed OO languages
Integration with common .NET frameworks
Updated examples illustrating DI in .NET Core
about the reader
For intermediate OO developers.
about the authors
Mark Seemann is a programmer, software architect, and speaker who has been working with software since 1995, including six years with Microsoft. Steven van Deursen is a seasoned .NET developer and architect, and the author and maintainer of the Simple Injector DI library.
eBook
$47.99
$33.59
print
$59.99
$41.99
with subscription
$24.99
Actually three books in one: a really good introduction to DI in .NET, an even better one to DI in general, and an absolutely excellent introduction to OO principles and software design.
This book is a masterpiece. It’s amazing and fundamental for every software developer who wants to write solid and correct code.
A marvelous, clear, and exhaustive journey into all aspects of DI in .NET, with very focused and complete real world examples.
4.8
Out of 5.0
Overall Rating
92%
of customers that buy this product give it a 4 or 5-Star rating.
“Great buy”
May 27, 2023 by Ivan (Denmark)
“Deep and insightful read around dependency injection.”
Company Choice
One of the reasons is MEAP programme and some of the publishers I like are publishing through manning.
Verified Buyer
“Great value”
Awesome book
May 16, 2022 by Stoyan S. (Burgas, Bulgaria)
“From it i learned how to combine a lot of patterns into a complete architecture”
Verified Buyer
“Great buy”
Even better than the first edition
April 5, 2021 by Doug (West Sussex, United Kingdom)
“Even better than the first edition and that was(is) an excellent book!”
Company Choice
Manning Publications are the ones I trust when I'm in the market for a new book, they are hard to beat.
Verified Buyer
“Great value”
Loving it!
May 26, 2020 by Alex E. (Mendoza, AR)
“I've only read the first chapter so far, but I've also heard from colleagues reading it about how great it is. I really loved the examples in chapter one; they set high expectations for the overall quality of the book!”
Company Choice
I have bought several books from you guys before.
Product Choice
Professional growth, personal interest.
Verified Buyer
“Great value”
An instant classic.
May 20, 2020 by Marlon A. (Auckland, NZ)
“This is not only a Dependency Injection book but also an excellent book about good software development and design principles. It's a must-buy to every developer. No regrets.
I would like to see more books like this.
It's an instant classic.”
Company Choice
Manning publications have the best content.
Product Choice
Dependency injection is one of the most misunderstood concepts in software development and I want to spread the knowledge in my team.
related titles
related titles
choose your plan
pro
monthly
annual
$24.99
$249.99
only $20.83 per month
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
choose another free product every time you renew
choose twelve free products per year
exclusive 50% discount on all purchases
Dependency Injection Principles, Practices, and Patterns ebook for free
team
monthly
annual
$49.99
$399.99
only $33.33 per month
five seats for your team
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
choose another free product every time you renew
choose twelve free products per year
exclusive 50% discount on all purchases
Dependency Injection Principles, Practices, and Patterns ebook for free