A Generic, IDisposable WCF Service Client
- by Steve Wilkes
WCF clients need to be cleaned up properly, but as they're usually auto-generated they don't implement IDisposable. I've been doing a fair bit of WCF work recently, so I wrote a generic WCF client wrapper which effectively gives me a disposable service client.
The ServiceClientWrapper is constructed using a WebServiceConfig instance,…