コード例 #1
0
 public IMessageHandlerStats GetStats()
 {
     lock (workers)
     {
         var total = new MessageHandlerStats("All Handlers");
         workers.ToList().ForEach(x => total.Add(x.GetStats()));
         return(total);
     }
 }
コード例 #2
0
 public virtual IMessageHandlerStats GetStats()
 {
     if (mqHosts == null)
     {
         return(null);
     }
     lock (mqHosts)
     {
         var total = new MessageHandlerStats("All Handlers");
         mqHosts.ToList().ForEach(x => total.Add(x.GetStats()));
         return(total);
     }
 }