Project DescriptionThis is a smart WCF client wrapper that keeps your code clean, and hides common beginner mistakes from the end user.
This code handles
- EventHandler Cleanup
- Exception Managment
- Reliable and efficient reuse of the proxy
- Cleanup of the proxy
- Clean "using(...)" method
Usage
var reusableSW = new LC.Utils.WCF.ServiceWrapper<IProcessDataDuplex>(channelFactory);
reusableSW.Reuse(client =>
{
client.CheckIn(count.ToString());
});
// When complete, you can dispose of the client
reusableSW.Dispose();
There are several support classes, and some experimental classes in this project. If you want to see the core code, that can be used today in your software, see this file:
http://smartwcfclient.codeplex.com/SourceControl/changeset/view/78537#1567063