Esempio n. 1
0
        /// <summary>
        /// This method starts the service.
        /// </summary>
        static void Main()
        {
            // To run more than one service you have to add them here
            //ServiceBase.Run(new ServiceBase[] { new RemoteControlService() });

            XmlWrapper xml = new XmlWrapper("apps.xml");

            rc = new RemoteControl(xml.getApps());
            //Thread.Sleep(10000);
            //rc.stop();
            SetConsoleCtrlHandler(new HandlerRoutine(Handler), true);//new EventHandler(Handler);

            while(true){}
        }
Esempio n. 2
0
        /// <summary>
        /// This method starts the service.
        /// </summary>
        static void Main()
        {
            // To run more than one service you have to add them here
            //ServiceBase.Run(new ServiceBase[] { new RemoteControlService() });

            XmlWrapper xml = new XmlWrapper("apps.xml");

            rc = new RemoteControl(xml.getApps());
            //Thread.Sleep(10000);
            //rc.stop();
            SetConsoleCtrlHandler(new HandlerRoutine(Handler), true);            //new EventHandler(Handler);

            while (true)
            {
            }
        }