A while ago I grabbed a WCF Membership example from
here. Now that I've been reading some more on WCF, I stumbled upon the following article: http://msdn.microsoft.com/en-us/library/aa355056.aspx
How do you see this? Have you ever had these 'errors from IDisposable' surface in production? Did you start rewriting every client call with try-catch-finally? Personally I'm a bit appalled by the idea... Using the using statement keeps the code clean.
So I started searching for a solution. This article (
WCF Gotcha #1) seems to provide a nice solution, but it's not exactly what I was hoping for.
Ideas are very welcome!
[edit]
Found some explanatory text out
there, as well as another possible
solution.
[/edit]
[edit]
I ran across the following article by Corneliu:
WCF Dynamic ClientBase Proxy part two. I really like this solution...
[/edit]