Self Hosted WCF Services Revisited

Self Hosted WCF Services Revisited

03/05/2008 20:53:46

I wrote an exceptionally lengthy piece on creating clever self hosted Windows services using IOC techniques and Windsor containers a few posts back.  Unfortunately the example application was a little half hearted, none-compiling and potentially difficult to grasp.

I've repackaged up the sources as a working solution for your pleasure.  I've made a few tweaks here and there but the code is largely unchanged.  The upside to this distribution is that you can just compile and reference the CommunicationsManager dll and include it in your projects, stick a few lines of configuration in app.config, three lines of code, and you have a self hosted WCF service.

I'll skip on reiterating past detail, but suffice to say, you'll need to go download the Windsor components from castleproject.org, and if you're smart, nUnit.

Download GenericWCFServer2.zip

Now Playing: Nine Inch Nails - 31 Ghosts IV