public virtual void Add(IMessageHandlerStats stats)
 {
     TotalMessagesProcessed        += stats.TotalMessagesProcessed;
     TotalMessagesFailed           += stats.TotalMessagesFailed;
     TotalRetries                  += stats.TotalRetries;
     TotalNormalMessagesReceived   += stats.TotalNormalMessagesReceived;
     TotalPriorityMessagesReceived += stats.TotalPriorityMessagesReceived;
 }
Beispiel #2
0
 public MessageHandlerStats(IMessageHandlerStats stats)
 {
     Processed         = stats.TotalMessagesProcessed;
     Failed            = stats.TotalMessagesFailed;
     Retries           = stats.TotalRetries;
     InQReceived       = stats.TotalNormalMessagesReceived;
     PriorityQReceived = stats.TotalPriorityMessagesReceived;
 }
 public virtual void Add(IMessageHandlerStats stats)
 {
     TotalMessagesProcessed += stats.TotalMessagesProcessed;
     TotalMessagesFailed += stats.TotalMessagesFailed;
     TotalRetries += stats.TotalRetries;
     TotalNormalMessagesReceived += stats.TotalNormalMessagesReceived;
     TotalPriorityMessagesReceived += stats.TotalPriorityMessagesReceived;
 }
 public virtual void Add(IMessageHandlerStats stats)
 {
     TotalMessagesProcessed += stats.TotalMessagesProcessed;
     TotalMessagesFailed += stats.TotalMessagesFailed;
     TotalRetries += stats.TotalRetries;
     TotalNormalMessagesReceived += stats.TotalNormalMessagesReceived;
     TotalPriorityMessagesReceived += stats.TotalPriorityMessagesReceived;
     if (LastMessageProcessed == null || stats.LastMessageProcessed < LastMessageProcessed)
         LastMessageProcessed = stats.LastMessageProcessed;
 }
 public virtual void Add(IMessageHandlerStats stats)
 {
     TotalMessagesProcessed        += stats.TotalMessagesProcessed;
     TotalMessagesFailed           += stats.TotalMessagesFailed;
     TotalRetries                  += stats.TotalRetries;
     TotalNormalMessagesReceived   += stats.TotalNormalMessagesReceived;
     TotalPriorityMessagesReceived += stats.TotalPriorityMessagesReceived;
     if (LastMessageProcessed == null || stats.LastMessageProcessed > LastMessageProcessed)
     {
         LastMessageProcessed = stats.LastMessageProcessed;
     }
 }
Beispiel #6
0
        public void Add(IMessageHandlerStats stats)
        {
            if (stats == null)
            {
                throw new ArgumentNullException("stats");
            }

            this._totalMessagesFailed          += stats.TotalMessagesFailed;
            this._totalMessagesProcessed       += stats.TotalMessagesProcessed;
            this._totalRetries                 += stats.TotalRetries;
            this.TotalNormalMessagesReceived   += stats.TotalNormalMessagesReceived;
            this.TotalPriorityMessagesReceived += stats.TotalPriorityMessagesReceived;
        }
        public void Add(IMessageHandlerStats stats)
        {
            if (stats == null)
            {
                throw new ArgumentNullException("stats");
            }

            this._totalMessagesFailed += stats.TotalMessagesFailed;
            this._totalMessagesProcessed += stats.TotalMessagesProcessed;
            this._totalRetries += stats.TotalRetries;
            this.TotalNormalMessagesReceived += stats.TotalNormalMessagesReceived;
            this.TotalPriorityMessagesReceived += stats.TotalPriorityMessagesReceived;
        }
Beispiel #8
0
        public static IMessageHandlerStats CombineStats(this IEnumerable <IMessageHandlerStats> stats)
        {
            IMessageHandlerStats to = null;

            if (stats != null)
            {
                foreach (var stat in stats)
                {
                    if (to == null)
                    {
                        to = new MessageHandlerStats(stat.Name);
                    }

                    to.Add(stat);
                }
            }

            return(to);
        }