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) { } }
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) { } }