/// <summary> /// Retrieve the given <see cref="T:Quartz.ITrigger"/>. /// </summary> /// <returns> /// The desired <see cref="T:Quartz.ITrigger"/>, or null if there is no /// match. /// </returns> public Task <IOperableTrigger> RetrieveTrigger(TriggerKey triggerKey, CancellationToken cancellationToken = default(CancellationToken)) { _logger.Info("RetrieveTrigger"); return(Task.FromResult(DoWithLock(() => _storage.RetrieveTrigger(triggerKey), "could not retrieve trigger"))); }
/// <summary> /// Retrieve the given <see cref="T:Quartz.ITrigger"/>. /// </summary> /// <returns> /// The desired <see cref="T:Quartz.ITrigger"/>, or null if there is no /// match. /// </returns> public IOperableTrigger RetrieveTrigger(TriggerKey triggerKey) { _logger.Info("RetrieveTrigger"); return(DoWithLock(() => _storage.RetrieveTrigger(triggerKey), "could not retrieve trigger")); }