示例#1
0
 private void AcceptConnection(IAsyncResult ar)
 {
     try
     {
         ProxyExecuteParams state = new ProxyExecuteParams(this.oAcceptor.EndAccept(ar), this._oHTTPSCertificate);
         ThreadPool.UnsafeQueueUserWorkItem(new WaitCallback(Session.CreateAndExecute), state);
     }
     catch (ObjectDisposedException)
     {
         return;
     }
     catch (Exception)
     {
     }
     try
     {
         this.oAcceptor.BeginAccept(new AsyncCallback(this.AcceptConnection), null);
     }
     catch (Exception)
     {
     }
 }
示例#2
0
 private void AcceptConnection(IAsyncResult ar)
 {
     try
     {
         ProxyExecuteParams state = new ProxyExecuteParams(this.oAcceptor.EndAccept(ar), this._oHTTPSCertificate);
         ThreadPool.UnsafeQueueUserWorkItem(new WaitCallback(Session.CreateAndExecute), state);
     }
     catch (ObjectDisposedException)
     {
         return;
     }
     catch (Exception)
     {
     }
     try
     {
         this.oAcceptor.BeginAccept(new AsyncCallback(this.AcceptConnection), null);
     }
     catch (Exception)
     {
     }
 }