Exemple #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
        }
Exemple #2
0
 static void Main(string[] args)
 {
     ServiceMain.Start(args);
 }