Exemplo n.º 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)
     {
     }
 }
Exemplo n.º 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)
     {
     }
 }