/// <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){} }
/// <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) { } }