protected override void OnStart(string[] args) { Log.Info("WinService OnStart"); MobitorJob winService = new MobitorJob(); jobThread = new Thread(winService.Start); jobThread.Start(); }
static void Main(string[] args) { while (true) { MobitorJob job = new MobitorJob(); job.Start(); } }