コード例 #1
0
        /// <summary>
        /// Resume (un-pause) the <see cref="T:Quartz.IJob"/> with the
        ///             given key.
        /// <para>
        /// If any of the <see cref="T:Quartz.IJob"/>'s<see cref="T:Quartz.ITrigger"/> s missed one
        ///             or more fire-times, then the <see cref="T:Quartz.ITrigger"/>'s misfire
        ///             instruction will be applied.
        /// </para>
        /// </summary>
        public Task ResumeJob(JobKey jobKey, CancellationToken cancellationToken = default(CancellationToken))
        {
            _logger.Info("ResumeJob");
            DoWithLock(() => _storage.ResumeJob(jobKey), string.Format("Error on resuming job - {0}", jobKey));

            return(Task.FromResult(0));
        }
コード例 #2
0
 /// <summary>
 /// Resume (un-pause) the <see cref="T:Quartz.IJob"/> with the
 ///             given key.
 /// <para>
 /// If any of the <see cref="T:Quartz.IJob"/>'s<see cref="T:Quartz.ITrigger"/> s missed one
 ///             or more fire-times, then the <see cref="T:Quartz.ITrigger"/>'s misfire
 ///             instruction will be applied.
 /// </para>
 /// </summary>
 public void ResumeJob(JobKey jobKey)
 {
     _logger.Info("ResumeJob");
     DoWithLock(() => _storage.ResumeJob(jobKey), string.Format("Error on resuming job - {0}", jobKey));
 }