Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / programming / performance

Do not use using for WCF Clients

5.00/5 (2 votes)
22 May 2011CPOL 8.4K  
Or you can use T4 to generate a static class wrapper around the service. Then your call can look like this:SvcWrapper.Login(username, password);The full explanation and sample code is located here[^].
Or you can use T4 to generate a static class wrapper around the service. Then your call can look like this:

SvcWrapper.Login(username, password);


The full explanation and sample code is located here[^].

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)