A friend of mine is starting to use Unity with WCF, and I looked up a rather simple but good set of articles on Unity with WCF:
Iâ€™ve personally used Castle Windsorâ€™s WCF facility, but for all intent purposes, they are doing the same thing.
If you arenâ€™t using DI with an IOC, I strongly suggest you learn about it and integrate it into your code. The benefits are fantastic and help promote good separation of concerns, easier to test your code, etcâ€¦
There are plenty of .NET IOC containers available. Learn more about each below:
- Unity Application Block â€“ patterns and practice team (fyi â€“ if you are using logging, etcâ€¦ they are using Unity under the covers â€“ might be a good place to start if you are in a â€˜P&P application blocksâ€™ environment.
- Windsor â€“ Castle Project (there is a WCF â€˜facilityâ€™) â€“ here is good example post on usage
- Spring.NET â€“ spring
- Structure Map