Chapter 11. StructureMap
Menu
- Introducing StructureMap
- Managing lifetime
- Working with multiple components
- Configuring difficult APIs
In the previous chapter, we looked at the Castle Windsor DI Container to see how the principles and patterns described in parts 1–3 can be applied. In this chapter, we’ll do exactly the same with another DI Container: StructureMap.
StructureMap is the oldest DI Container for .NET—it has been around longer than the others. Despite its age, it’s still being actively developed and has many modern features, so we should view its age mostly as a testament to its maturity. It’s also one of the most commonly used DI Containers.1
In this chapter, we’ll examine how StructureMap can be used to apply the principles and patterns ...
Get Dependency Injection in .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.