private void DoNextJob() { using (Schedule schedule = _scheduler.Next()) { Task work = _coordinator.GetWork(schedule.Job); if (work != null) { _host.DoWork(work); } } }
void DoNextJob() { using (var schedule = _scheduler.Next()) { var work = _coordinator.GetWork(schedule.Job); if (work != null) { _host.DoWork(work); } } }
void DoNextJob() { using (var schedule = _scheduler.Next()) { var work = _coordinator.GetWork(schedule.Job); if (work != null) { _host.DoWork(work); } } if (_logAction != null) { _logAction(_scheduler.ToString()); } }