Exemplo n.º 1
0
        /// <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")));
        }
Exemplo n.º 2
0
        /// <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"));
        }