示例#1
0
文件: Service1.cs 项目: demon28/DMS
        protected override void OnStart(string[] args)
        {
            Log.Info("WinService OnStart");
            MobitorJob winService = new MobitorJob();

            jobThread = new Thread(winService.Start);
            jobThread.Start();
        }
示例#2
0
文件: Program.cs 项目: demon28/DMS
 static void Main(string[] args)
 {
     while (true)
     {
         MobitorJob job = new MobitorJob();
         job.Start();
     }
 }