public void StopWorking(string reason) { Console.WriteLine(); Console.WriteLine(reason); Console.WriteLine("Click 'enter' to close the application..."); Console.ReadLine(); //LOG DeviceClass.MakeLog("INFO - Stop working."); DeviceClass.MakeConsoleLog("INFO - Stop working."); //wyłącz konsolę i zwolnij calą pamięć alokowaną Environment.Exit(0); }
private void InitializeSignallingModules() { DeviceClass.MakeLog("|SIGNALLING| NodeDevise is waking up..."); DeviceClass.MakeConsoleLog("|SIGNALLING| NodeDevise is waking up..."); _cc = new CC(_configurationFolderPath + "/CC_config.xml"); _rc = new RC(_configurationFolderPath + "/RC_config.xml"); _lrm = new LRM(_configurationFolderPath + "/LRM_config.xml"); _pc = new PC(_configurationFolderPath + "/PC_config.xml", _cc, _rc, _lrm); _cc.LocalPC = _pc; _rc.LocalPC = _pc; _lrm.LocalPC = _pc; StartWorking(); }
public void StartWorking() { MakeLog("INFO - Start working."); MakeConsoleLog("INFO - Start working."); Console.WriteLine(); Console.WriteLine("Node is working. Write 'end' to close the program."); Console.WriteLine("<------------------------------------------------->"); string end = null; do { end = Console.ReadLine(); }while (end != "end"); //LOG DeviceClass.MakeLog("INFO - Stop working."); DeviceClass.MakeConsoleLog("INFO - Stop working."); }
public static void MakeSignallingLog(string moduleName, string logMessage) { DeviceClass.MakeLog("|SIGNALLING - " + moduleName + "| " + logMessage); }
private void StopWorking(string reason) { DeviceClass.MakeLog("|SIGNALLING| NodeDevise is working..."); }
private void StartWorking() { DeviceClass.MakeLog("|SIGNALLING| NodeDevise is working..."); DeviceClass.MakeConsoleLog("|SIGNALLING| NodeDevise is working..."); }