Akka.Cluster.NodeMetrics.Merge C# (CSharp) Method

Merge() public method

Returns the most recent data
public Merge ( NodeMetrics that ) : NodeMetrics
that NodeMetrics
return NodeMetrics
        public NodeMetrics Merge(NodeMetrics that)
        {
            if(Address != that.Address) throw new ArgumentException(string.Format("NodeMetrics.merge is only allowed for the same address. {0} != {1}", Address, that.Address));
            if (Timestamp >= that.Timestamp) return this; //that is older
            return new NodeMetrics(Address, that.Timestamp, that.Metrics.Union(Metrics));
        }