If I have a function in silverlight that is like this:
authenticationServiceClient.testCompleted += callback;
authenticationServiceClient.testAsync();
Do I really need to call closeasync or will it be called for me when the program is done?
authenticationServiceClient is a local var to the function/
When the program is done, all the open connections will be closed.
If you want to dispose of the resource while the program is running, then it depends on the binding the client uses. If you’re dealing with an HTTP binding, then calling Close[Async] isn’t really necessary; if you’re dealing with a TCP binding, then Close will actually close the socket, which remains open (for some time).