public void Shutdown()
 {
     Logger.ConsoleWriteLine("Shutdown for RPPDatabaseHandler is triggered!", ConsoleColor.White);
     m_MainThread = null;
     if (m_Communicator != null)
     {
         m_Communicator.Shutdown();
         try
         {
             ProcessData();
         }
         catch (Exception ex)
         {
             Logger.LogException(ex);
         }
         m_Communicator.WaitForClosed();
         try
         {
             ProcessData();
         }
         catch (Exception ex)
         {
             Logger.LogException(ex);
         }
         m_Communicator = null;
     }
 }
Exemple #2
0
 static void CurrentDomain_ProcessExit(object sender, EventArgs e)
 {
     m_Communicator.Shutdown();
     ProcessData();
     m_Communicator.WaitForClosed();
     ProcessData();
     m_Communicator = null;
 }
Exemple #3
0
 public void Shutdown()
 {
     m_MainThread = null;
     if (m_Communicator != null)
     {
         m_Communicator.Shutdown();
         ProcessData();
         m_Communicator.WaitForClosed();
         ProcessData();
         m_Communicator = null;
     }
 }