Exemple #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
#if DEBUG
            MattStevenQuizService myservice = new MattStevenQuizService();
            myservice.start();
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new MattStevenQuizService()
            };
            ServiceBase.Run(ServicesToRun);
#endif
        }
Exemple #2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            #if DEBUG
            MattStevenQuizService myservice = new MattStevenQuizService();
            myservice.start();
            #else

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new MattStevenQuizService()
            };
            ServiceBase.Run(ServicesToRun);
            #endif
        }