1
Vote

Do not use the "using" statement for service proxies

description

Hi,
 
You should not use the "using" statement for handling service proxies. Dan Rigsby has an excellent blog post about it:
http://www.danrigsby.com/blog/index.php/2008/02/26/dont-wrap-wcf-service-hosts-or-clients-in-a-using-statement/
 
Best regards,
 
Lars Wilhelmsen

comments

dunnry wrote Jul 30, 2009 at 7:19 PM

Agreed. There are extension patterns that can used instead to approximate this behavior (e.g. http://www.pluralsight.com/community/blogs/starr/archive/2009/07/13/handy-wcf-techniques.aspx). However, for the v3 release, there are no WCF services anymore, so it does not apply.

wrote Feb 13, 2013 at 6:35 PM