Ejemplo n.º 1
0
        protected override void OnStart(string[] args)
        {
            scheduler = CoreFactory.CreateSchedulerInstance();
            // Create the thread object, passing in the Scheduler.Run method
            // via a ThreadStart delegate. This does not start the thread.
            thread = new Thread(new ThreadStart(scheduler.Run));

            // Start the thread
            thread.Start();

            log.Info("WindowsService gestartet");
        }