Beispiel #1
0
 static void ProcessObj(HttpSession obj)
 {
     _hostsList.Add(obj.Uri.Host);
     //Console.WriteLine("left {0}", _objList.Count);
     new MagicClient().BeginReceive(obj);
 }
Beispiel #2
0
 public static void Queue(HttpSession obj)
 {
     if (_hostsList.TotalCount < MaxParallelRequests)
     {
         ProcessObj(obj);
     }
     else
     {
         lock (_waitList)
         {
             _waitList.Add(obj);
         }
     }
 }
Beispiel #3
0
 public static bool HaveResponce(HttpSession obj)
 {
     return(new MagicClient().HaveResponce(obj));
 }
Beispiel #4
0
 public static bool HaveResponce(HttpSession obj)
 {
     return new MagicClient().HaveResponce(obj);
 }
Beispiel #5
0
 static void ProcessObj(HttpSession obj)
 {
     _hostsList.Add(obj.Uri.Host);
     //Console.WriteLine("left {0}", _objList.Count);
     new MagicClient().BeginReceive(obj);
 }