Esempio n. 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            log4net.Config.XmlConfigurator.Configure();
            Logger.Info("(Acme Program Starter Service logger has been configured.");

#if !DEBUG
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new Service1()
            };
            ServiceBase.Run(ServicesToRun);
#else
            var programStarter = new ProgramStarterCaller();
            programStarter.StartProcess();
#endif
        }
Esempio n. 2
0
 protected override void OnStart(string[] args)
 {
     processCaller = new ProgramStarterCaller();
     processCaller.StartProcess();
 }