public void Handle(RefreshCommand command) { if (command == null) { throw new InvalidOperationException(); } _jobScheduler.Execute(command.Item); }
private void EnableOrAddSchedule(Item item) { if (_jobScheduler.Contains(item)) { _jobScheduler.Enable(item); _jobScheduler.Execute(item); } else { _jobScheduler.Schedule(item, includeChildren: false); } }