I ve created wcf-service in asp.net application, that hosts silverlight application as well, that has only one method:
public void TestMethod(int idRequest)
{
System.Diagnostics.Debug.WriteLine(idRequest);
System.Threading.Thread.Sleep(new TimeSpan(1, 0, 0));
}
I activate this method asynchronously from silverlight app by pushing on the button:
private static int countRequest = 0;
private void Button_Click(object sender, RoutedEventArgs e)
{
countRequest++;
WCFServiceManager.WCFServiceClient serviceRef = new WCFServiceManager.WCFServiceClient();
serviceRef.TestMethodAsync(countRequest);
}
it's possible to activate the method only 6 times (I look at VS, window Output), the other inquiries are at the row and while one from 6 threads won't finish its execution, a new one won't start in TestMethod. More than 6 inquiries are sending from the client (it's displayed in httpFox). What is connected with the restriction? How can we increase the amount from 6 to 50 for example? Thank you in advance. I appreciate your help.
WS 2010, Window Output: imageshack.us/a/img580/1416/outputqn.png
HttpFox: imageshack.us/a/img546/6461/httpfox.png