Back in 2012, I wrote a post about how to use the decorator pattern with StrutureMap. Since then, StructureMap 3.0 has been released, and it’s actually much easier to apply decorators now! Read on, and I’ll show you. [more] Back in 2012… The StructureMap 2.6.x API didn’t provide a clean way to decorate things. You…
try-catch-FAIL
Stories from the trenches of software development.
Tag: <span>DesignPatterns</span>
The Decorator Pattern, Done Right, With StructureMap
One of the cool bits of black magic I showed during my “StructureMapping Your Way to Better Software” talk was an extension method for registering decorators using StructureMap. In this post, I’ll show you how it works. [more] EnrichWith Says What? StructureMap actually supports the decorator pattern right out of the box. This functionality…