Ejemplo n.º 1
0
 /// <summary>
 ///  Adds new remote <see cref="NodeMetrics"/> and merges existing from a remote gossip.
 /// </summary>
 public MetricsGossip Merge(MetricsGossip otherGossip)
 {
     return(otherGossip.Nodes.Aggregate(this, (gossip, node) => gossip + node));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates new instance of <see cref="MetricsGossipEnvelope"/>
 /// </summary>
 public MetricsGossipEnvelope(Actor.Address fromAddress, MetricsGossip gossip, bool reply)
 {
     FromAddress = fromAddress;
     Gossip      = gossip;
     Reply       = reply;
 }