示例#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);
     }
 }
示例#2
0
 private void AddThread(HttpThread thread)
 {
     this.threadPools.Add(thread);
 }