コード例 #1
0
 /// <summary>
 /// Get a handle to the next trigger to be fired, and mark it as 'reserved'
 ///             by the calling scheduler.
 /// </summary>
 /// <param name="noLaterThan">If &gt; 0, the JobStore should only return a Trigger
 ///             that will fire no later than the time represented in this value as
 ///             milliseconds.</param><param name="maxCount"/><param name="timeWindow"/>
 /// <returns/>
 /// <seealso cref="T:Quartz.ITrigger"/>
 public Task <IReadOnlyCollection <IOperableTrigger> > AcquireNextTriggers(DateTimeOffset noLaterThan, int maxCount, TimeSpan timeWindow, CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("AcquireNextTriggers");
     return(Task.FromResult(DoWithLock(() => _storage.AcquireNextTriggers(noLaterThan, maxCount, timeWindow),
                                       "Error on acquiring next triggers")));
 }
コード例 #2
0
 /// <summary>
 /// Get a handle to the next trigger to be fired, and mark it as 'reserved'
 ///             by the calling scheduler.
 /// </summary>
 /// <param name="noLaterThan">If &gt; 0, the JobStore should only return a Trigger
 ///             that will fire no later than the time represented in this value as
 ///             milliseconds.</param><param name="maxCount"/><param name="timeWindow"/>
 /// <returns/>
 /// <seealso cref="T:Quartz.ITrigger"/>
 public IList <IOperableTrigger> AcquireNextTriggers(DateTimeOffset noLaterThan, int maxCount, TimeSpan timeWindow)
 {
     _logger.Info("AcquireNextTriggers");
     return(DoWithLock(() => _storage.AcquireNextTriggers(noLaterThan, maxCount, timeWindow),
                       "Error on acquiring next triggers"));
 }