/// <inheritdoc />
 public long Run(CancellationToken token)
 {
     using (_timer.NewContext())
     {
         var count = _handler.Run(token);
         _counter.Increment(count);
         return(count);
     }
 }
Пример #2
0
        /// <inheritdoc />
        public long Run(CancellationToken token)
        {
            var records = _handler.Run(token);

            if (records > 0)
            {
                _log.LogInformation($"Moved {records} records from the delayed queue to the pending queue");
            }
            return(records);
        }