コード例 #1
0
ファイル: Service1.cs プロジェクト: dfriedenberger/jawis
        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");
        }