For .NET developers and architects, this is the ultimate guide to the principles of Dependency Injection and how to use the automating features of Ninject in the most effective way. Packed with examples, diagrams, and illustrations. Overview In Detail Dependency injection is an approach to creating loosely coupled applications. Maintainability, testability, and extensibility are just a few advantages of loose coupling. Ninject is a software library which automates almost everything that we need in order to implement a dependency injection pattern. Mastering Ninject for Dependency Injection will teach you everything you need to know in order to implement dependency injection using Ninject in a real-life project. Not only does it teach you about Ninject core framework features that are essential for implementing dependency injection, but it also explores the power of Ninject’s most useful extensions and demonstrates how to apply them. Mastering Ninject for Dependency Injection starts by introducing you to dependency injection and what it’s meant for with the help of sufficient examples. Eventually, you’ll learn how to integrate Ninject into your practical project and how to use its basic features. Also, you will go through scenarios wherein advanced features of Ninject, such as Multi-binding, Contextual binding, providers, factories and so on, come into play. As you progress, Mastering Ninject for Dependency Injection will show you how to create a multilayer application that demonstrates the use of Ninject on different application types such as MVC, WPF, WCF, and so on. Finally, you will learn the benefits of using the powerful extensions of Ninject. What you will learn from this book Approach Mastering Ninject for Dependency Injection teaches you the most powerful concepts of Ninject in a simple and easy-to-understand format using lots of practical examples, diagrams, and illustrations.
This book offers a quick introduction into Dependency Injection and then explains all parts of Ninject. The book not only covers the basics that you need to work with Ninject, but it explains what is done behind the curtain to map your configuration to your concrete classes. That knowledge helps you to better understand Ninject and gives you a lot of ideas on how to tweak it should you need more than the “normal” mapping. All that is done without much overhead and directly to the point. The time to read this book is well spent when you work with Ninject.
Highly recommended for anyone who uses Ninject on a daily basis. I was very surprised to see the depth of functionality Ninject has to offer and the elegance it can bring to your application architecture. I will definitely keep this on hand for reference - in fact I had already used one of the patterns detailed in this book before I finished reading!
A great book for introducing Ninject and the Dependency Injection pattern! The book also presents clear and self-explanatory examples for different types of applications (WPF, WinForms, ASP. Net MVC, WCF) and even the advanced topics are exemplified and covered in a well-concise manner. The references presented in this book are a must-read too.
That was really good. I've been using Ninject for a while now and had no idea you could do some of this stuff. Liked that the book was fairly short and highly focused. Good examples throughout.