Beispiel #1
0
        /// <summary>
        /// Inform the <see cref="T:Quartz.Spi.IJobStore"/> that the scheduler no longer plans to
        ///             fire the given <see cref="T:Quartz.ITrigger"/>, that it had previously acquired
        ///             (reserved).
        /// </summary>
        public Task ReleaseAcquiredTrigger(IOperableTrigger trigger, CancellationToken cancellationToken = default(CancellationToken))
        {
            _logger.Info("ReleaseAcquiredTrigger");
            DoWithLock(() => _storage.ReleaseAcquiredTrigger(trigger), string.Format("Error on releasing acquired trigger - {0}", trigger));

            return(Task.FromResult(0));
        }
Beispiel #2
0
 /// <summary>
 /// Inform the <see cref="T:Quartz.Spi.IJobStore"/> that the scheduler no longer plans to
 ///             fire the given <see cref="T:Quartz.ITrigger"/>, that it had previously acquired
 ///             (reserved).
 /// </summary>
 public void ReleaseAcquiredTrigger(IOperableTrigger trigger)
 {
     _logger.Info("ReleaseAcquiredTrigger");
     DoWithLock(() => _storage.ReleaseAcquiredTrigger(trigger), string.Format("Error on releasing acquired trigger - {0}", trigger));
 }