/// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            #if DEBUG
            // Code to run for debugging.

            // Instantiate service.
            AdUnlockService adUnlockService = new AdUnlockService();

            // Call service starter.
            adUnlockService.OnDebug();
            #else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new AdUnlockService()
            };
            ServiceBase.Run(ServicesToRun);
            #endif
        }
示例#2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
#if DEBUG
            // Code to run for debugging.

            // Instantiate service.
            AdUnlockService adUnlockService = new AdUnlockService();

            // Call service starter.
            adUnlockService.OnDebug();
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new AdUnlockService()
            };
            ServiceBase.Run(ServicesToRun);
#endif
        }