Пример #1
0
 protected override bool PreProcess()
 {
     if (m_reqProc == null)
         return false;
     if (m_reqProc.GetReqId() == IGRequest.IGREQUEST_WORKSPACE_CONNECT)
     {
         IGAnswerDisconnected answerDisconnected = new IGAnswerDisconnected(m_connection);
         answerDisconnected.Execute();
         return true;
     }
     return false;
 }
Пример #2
0
 private void onProcessExited(object o, EventArgs eventArgs)
 {
     if (m_connection == null)
         return;
     IGRequestProcessing.Cleanup(m_connection);
     if (m_bReseting)
     {
         m_bReseting = false;
         Initialize();
         m_connection.Initialize();
     }
     else
     {
         IGConnectionLocal resetConnection = (IGConnectionLocal)m_connection;
         if (resetConnection.IsUserConnected() ||
             resetConnection.IsUserConnecting())
         {
             IGAnswerDisconnected answerDisconnected = new IGAnswerDisconnected((IGConnectionLocal)m_connection);
             answerDisconnected.Execute();
         }
         ResetConnection(m_connection);
         m_connection.Initialize();
     }
 }