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