예제 #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            ServiceMain serviceMain = new ServiceMain();

            serviceMain.Initialize();
#if (DEBUG)
            serviceMain.Start();
#else
            ServiceBase.Run(new ServiceBase[] { serviceMain });
#endif
        }
예제 #2
0
 static void Main(string[] args)
 {
     ServiceMain.Start(args);
 }