try-catch-FAIL

Failure is inevitable

NAVIGATION - SEARCH

The Decorator Pattern, Done Right, With StructureMap 3.0

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...

Ditching StructureMap’s ObjectFactory

Another question people ask after they’ve watched my App Framework course at Pluralsight is, “What should I do now that StructureMap’s ObjectFactory has been deprecated?”  Actually, it’s more like a cry for help rather than a question.  It goes like this: “AAHHHHHH OBJECT FACTORY IS GOING AWAY WHAT DO I DO?? AHHHHHHHHHHHHHHHHHH!!”  Or at least that’s how I choose to read the comments and questions. :)  But don’t panic!  Read on, it’s actually far easier to address than you might think. More...

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...