/// <summary>
        /// The Main Thread: This is where your Service is Run.
        /// </summary>
        static void Main(string[] args)
        {
            var service = new SerialSpeedControllerWindowsService();

            if (Environment.UserInteractive)
            {
                Console.WriteLine("Serial TCP Server, Version 0.7");
                service.OnStart(args);
                Console.WriteLine("Enter any key to stop the program");
                Console.Read();
                service.OnStop();
            }
            else
            {
                ServiceBase.Run(service);
            }
        }
 /// <summary>
 /// The Main Thread: This is where your Service is Run.
 /// </summary>
 static void Main(string[] args)
 {
     var service = new SerialSpeedControllerWindowsService();
     if (Environment.UserInteractive)
     {
         Console.WriteLine("Serial TCP Server, Version 0.7");
         service.OnStart(args);
         Console.WriteLine("Enter any key to stop the program");
         Console.Read();
         service.OnStop();
     }
     else
     {
         ServiceBase.Run(service);
     }
 }