/// <summary> /// The main entry point for the application. /// </summary> static void Main() { #if (DEBUG) ZifliService oService = new ZifliService(); oService.Start(); while (true) { System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); } #else ServiceBase[] ServicesToRun; // More than one user Service may run within the same process. To add // another service to this process, change the following line to // create a second service object. For example, // // ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()}; // ServicesToRun = new ServiceBase[] { new ZifliService() }; ServiceBase.Run(ServicesToRun); #endif }