コード例 #1
0
        /// <summary>
        /// Pause the <see cref="T:Quartz.ITrigger"/> with the given key.
        /// </summary>
        public Task PauseTrigger(TriggerKey triggerKey, CancellationToken cancellationToken = default(CancellationToken))
        {
            _logger.Info("PauseTrigger");
            DoWithLock(() => _storage.PauseTrigger(triggerKey),
                       string.Format("Error on pausing trigger - {0}", triggerKey));

            return(Task.FromResult(0));
        }
コード例 #2
0
 /// <summary>
 /// Pause the <see cref="T:Quartz.ITrigger"/> with the given key.
 /// </summary>
 public void PauseTrigger(TriggerKey triggerKey)
 {
     _logger.Info("PauseTrigger");
     DoWithLock(() => _storage.PauseTrigger(triggerKey),
                string.Format("Error on pausing trigger - {0}", triggerKey));
 }