Is this the right approach to close WCF connections 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 am having problems with parallel connections, when the loop reaches the point where it is about 300 requests, it just fails. Thank.
Bablo source
share