예제 #1
0
        /// <summary>
        /// Resume (un-pause) the <see cref="T:Quartz.ITrigger"/> with the
        ///             given key.
        /// <para>
        /// If the <see cref="T:Quartz.ITrigger"/> missed one or more fire-times, then the
        ///             <see cref="T:Quartz.ITrigger"/>'s misfire instruction will be applied.
        /// </para>
        /// </summary>
        /// <seealso cref="T:System.String"/>
        public Task ResumeTrigger(TriggerKey triggerKey, CancellationToken cancellationToken = default(CancellationToken))
        {
            _logger.Info("ResumeTrigger");
            DoWithLock(() => _storage.ResumeTrigger(triggerKey),
                       string.Format("Error on resuming trigger - {0}", triggerKey));

            return(Task.FromResult(0));
        }
예제 #2
0
 /// <summary>
 /// Resume (un-pause) the <see cref="T:Quartz.ITrigger"/> with the
 ///             given key.
 /// <para>
 /// If the <see cref="T:Quartz.ITrigger"/> missed one or more fire-times, then the
 ///             <see cref="T:Quartz.ITrigger"/>'s misfire instruction will be applied.
 /// </para>
 /// </summary>
 /// <seealso cref="T:System.String"/>
 public void ResumeTrigger(TriggerKey triggerKey)
 {
     _logger.Info("ResumeTrigger");
     DoWithLock(() => _storage.ResumeTrigger(triggerKey),
                string.Format("Error on resuming trigger - {0}", triggerKey));
 }