Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
        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.");
        }
Ejemplo n.º 4
0
 public static void MakeSignallingConsoleLog(string moduleName, string logMessage)
 {
     DeviceClass.MakeConsoleLog("|SIGNALLING - " + moduleName + "| " + logMessage);
 }
Ejemplo n.º 5
0
 private void StopWorking(string reason)
 {
     DeviceClass.MakeLog("|SIGNALLING| NodeDevise is working...");
 }
Ejemplo n.º 6
0
 private void StartWorking()
 {
     DeviceClass.MakeLog("|SIGNALLING| NodeDevise is working...");
     DeviceClass.MakeConsoleLog("|SIGNALLING| NodeDevise is working...");
 }