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; } }
static void CurrentDomain_ProcessExit(object sender, EventArgs e) { m_Communicator.Shutdown(); ProcessData(); m_Communicator.WaitForClosed(); ProcessData(); m_Communicator = null; }
public void Shutdown() { m_MainThread = null; if (m_Communicator != null) { m_Communicator.Shutdown(); ProcessData(); m_Communicator.WaitForClosed(); ProcessData(); m_Communicator = null; } }