Monday, January 4, 2010

Silverlight WCF Proxy Close

Hi, I just wanted to let you all know that I believe it is advantageous to close your proxies when leaving a silverlight page. The best way, I believe, is to do this in the class destructor.

~MainPage()
{
if (proxy != null)
{
proxy.CloseAsync();
proxy = null;
}
}

Hope this helps someone.