Exemplo n.º 1
0
 /// <summary>
 /// 阻塞进程
 /// </summary>
 public void WaitRequest()
 {
     while (true)
     {
         HttpListenerContext result = server.GetContext();
         HttpThread          temp   = new HttpThread(result);
         AddThread(temp);
         temp.Start();
         threadPools.Remove(temp);
     }
 }
Exemplo n.º 2
0
 private void AddThread(HttpThread thread)
 {
     this.threadPools.Add(thread);
 }