Beispiel #1
0
 /// <summary>
 /// Retrieve the <see cref="T:Quartz.IJobDetail"/> for the given
 ///             <see cref="T:Quartz.IJob"/>.
 /// </summary>
 /// <returns>
 /// The desired <see cref="T:Quartz.IJob"/>, or null if there is no match.
 /// </returns>
 public Task <IJobDetail> RetrieveJob(JobKey jobKey, CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("RetrieveJob");
     return(Task.FromResult(DoWithLock(() => _storage.RetrieveJob(jobKey),
                                       "Could not retriev job")));
 }
Beispiel #2
0
 /// <summary>
 /// Retrieve the <see cref="T:Quartz.IJobDetail"/> for the given
 ///             <see cref="T:Quartz.IJob"/>.
 /// </summary>
 /// <returns>
 /// The desired <see cref="T:Quartz.IJob"/>, or null if there is no match.
 /// </returns>
 public IJobDetail RetrieveJob(JobKey jobKey)
 {
     _logger.Info("RetrieveJob");
     return(DoWithLock(() => _storage.RetrieveJob(jobKey),
                       "Could not retriev job"));
 }