Is this the right approach for closing connections with WCF in silverlight?
ServiceClient client = new ServiceClient();
client.MakeRequestCompleted += (sender, e) =>
{
client.CloseAsync();
//some implementation goes here
};
for (int i = 0; i < 1000; i++)
{
client.MakeRequestAsync();
}
I appear to be having problems related to concurrent connections, when the loop gets to the point where its made about 300 requests, it just fails. Thanks.