Part 4. DI Containers
The previous parts of the book have been about the various principles and patterns that together define DI. As chapter 3 explained, a DI CONTAINER is an optional tool that you can use to implement a lot of the general-purpose infrastructure that you would otherwise have to implement if you were using POOR MAN’S DI.
Throughout the book, I’ve strived to keep it as container-agnostic as possible. Don’t interpret this as a recommendation of POOR MAN’S DI; rather, I wanted you to see DI in its pure form, untainted by any particular container’s (possibly quirky) API.
There is little reason to waste your time with POOR MAN’S DI because many excellent DI CONTAINERS are available for .NET. Here in part 4 is a selection of six specific free containers. In each chapter I provide detailed coverage of that particular container’s API as it relates to the dimensions covered in part 3, as well as various other issues that traditionally cause beginners grief.