private static void SchedulerLoop(Job job) { while (true) { job.Execute(); Thread.Sleep(1000); } }
static void Main(string[] args) { var job = new Job(); SchedulerLoop(job); }