Archive | January, 2013

The Decorator Pattern with Castle Windsor

The decorator pattern is a useful patter for adding additional behaviour or functionality to an existing object. Castle windsor enables injection of a decorator in a fairly low friction way. A Simple Decorator Implementation For my example I’m going to have a basic repository pattern, whereby my repository is injected by castle windsor. My decorator […]

Continue Reading 0

Castle Windsor and Lifestyle Transient

I’ve been using castle.windsor on a fairly large WPF project recently, and have encountered a particular issue – namely injecting something as lifestyle transient. Memory Leak These days most of us .net developers aren’t worrying too much about memory leaks – the garbage collector has been doing a pretty good job cleaning things up for […]

Continue Reading 0