Keywords: WCF, C#, WCF Wrapper
Publish Date: 9/6/2015
Description: A Wcf Wrapper that will properly disposes of wcf resources
A Testable wcf Service Wrapper
Calling a wcf service requires some setup and tear down when done properly.
This code wraps the wcf call and takes care of closing and aborting the wcf client and channel factory. It also finds the configuration element automatically by the full name of the wcf interface. Note that you usually have to add the full namespace to the interface in the binding contract attribute for this code to work properly.