Пример #1
0
        /// <summary>
        /// Pause the <see cref="T:Quartz.IJob"/> with the given key - by
        ///             pausing all of its current <see cref="T:Quartz.ITrigger"/>s.
        /// </summary>
        public Task PauseJob(JobKey jobKey, CancellationToken cancellationToken = default(CancellationToken))
        {
            _logger.Info("PauseJob");
            DoWithLock(() => _storage.PauseJob(jobKey), string.Format("Error on pausing job - {0}", jobKey));

            return(Task.FromResult(0));
        }
Пример #2
0
 /// <summary>
 /// Pause the <see cref="T:Quartz.IJob"/> with the given key - by
 ///             pausing all of its current <see cref="T:Quartz.ITrigger"/>s.
 /// </summary>
 public void PauseJob(JobKey jobKey)
 {
     _logger.Info("PauseJob");
     DoWithLock(() => _storage.PauseJob(jobKey), string.Format("Error on pausing job - {0}", jobKey));
 }