예제 #1
0
        public void Handle(RefreshCommand command)
        {
            if (command == null)
            {
                throw new InvalidOperationException();
            }

            _jobScheduler.Execute(command.Item);
        }
예제 #2
0
        private void EnableOrAddSchedule(Item item)
        {
            if (_jobScheduler.Contains(item))
            {
                _jobScheduler.Enable(item);

                _jobScheduler.Execute(item);
            }
            else
            {
                _jobScheduler.Schedule(item, includeChildren: false);
            }
        }