Ejemplo n.º 1
0
 /// <inheritdoc />
 public long ClearMessages(CancellationToken cancelToken)
 {
     using (_timer.NewContext())
     {
         var count = _handler.ClearMessages(cancelToken);
         _counter.Increment(count);
         return(count);
     }
 }
        /// <inheritdoc />
        public long ClearMessages(CancellationToken cancelToken)
        {
            var count = _handler.ClearMessages(cancelToken);

            if (count > 0)
            {
                _log.LogInformation($"Deleted {count} error messages from {_connectionInfo.QueueName}");
            }
            return(count);
        }