public IMessageHandlerStats GetStats() { lock (workers) { var total = new MessageHandlerStats("All Handlers"); workers.ToList().ForEach(x => total.Add(x.GetStats())); return(total); } }
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); } }