Possible Duplicate:
WCF wrap proxy client
I have many web methods in services in my project that use client application.
I don't want write code something like this:
 using(ServiceClient sc = new ServiceClient())
    {
         //Invoke service methods        
         sc.Method1();
    }
Instead of, I want to write: ServiceClient.Method1(); (for example) - in this case all common operation which referred to the proxy (initialization, invoking method, disposing, exception processing) will be inside ServiceClient. Of course, i can wrap any of my web method with similar code or use reflection for retrieving method by name, but maybe any other ways are exist?
 
     
     
    