I find myself wanting a decorator pattern syntax similar to...
x.For<IInterface>().Use<Implementation>()
.DecorateWith<Decorator1>()
.DecorateWith<Decorator2>();
In the past (v2.6) I used
an extension method by Matt Honeycutt that gave me this (from
his blog)...
cfg.For<IProductRepository>().Use<InMemoryProductRepository>()
.Decorate().With<ProductSecurityDecorator>()
.AndThen<ProductRepoLogger>()
.AndThen<RudeProductRepoLogger>();
Am I missing something in StructureMap v3, or can we add this kind of decorator syntax?