static private void Start()
        {
            ATCSlaveController slave;
            try
            {
                slave = new ATCSlaveController();

                System.Console.WriteLine("Press Enter to exit");
                //keep server running until enter is pressed
                System.Console.ReadLine();
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.Message);
                Start();
            }
        }
Exemple #2
0
        static private void Start()
        {
            ATCSlaveController slave;

            try
            {
                slave = new ATCSlaveController();

                System.Console.WriteLine("Press Enter to exit");
                //keep server running until enter is pressed
                System.Console.ReadLine();
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.Message);
                Start();
            }
        }