Archive for category Windsor

Strategy Pattern with Castle Windsor

One of the tangent patterns associated with isolation or Single Responsibility is the Strategy Pattern.  I use Castle Windsor as my IoC of choice and I had hoped there was some black magic built in to make the Strategy Pattern dead simple.  Turns out there is and there isn’t. What is the Strategy Pattern The [...]

Injecting a WCF Channel as Dependency via Windsor

When working within a closed system which uses WCF and an IoC container you will often find the following pattern:   What happens is the SomeAppService is often, but not always, a very thin wrapper over the WCF Service.  If you own both ends of this scenario its often nice to remove the WCF layer [...]