コード例 #1
0
 /// <summary>
 /// Get all of the Triggers that are associated to the given Job.
 /// </summary>
 /// <remarks>
 /// If there are no matches, a zero-length array should be returned.
 /// </remarks>
 public Task <IReadOnlyCollection <IOperableTrigger> > GetTriggersForJob(JobKey jobKey, CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("GetTriggersForJob");
     return(Task.FromResult(DoWithLock(() => _storage.GetTriggersForJob(jobKey), string.Format("Error on getting triggers for job - {0}", jobKey))));
 }
コード例 #2
0
 /// <summary>
 /// Get all of the Triggers that are associated to the given Job.
 /// </summary>
 /// <remarks>
 /// If there are no matches, a zero-length array should be returned.
 /// </remarks>
 public IList <IOperableTrigger> GetTriggersForJob(JobKey jobKey)
 {
     _logger.Info("GetTriggersForJob");
     return(DoWithLock(() => _storage.GetTriggersForJob(jobKey), string.Format("Error on getting triggers for job - {0}", jobKey)));
 }