Copy() public method

public Copy ( ImmutableHashSet seen = null, Reachability reachability = null ) : GossipOverview
seen ImmutableHashSet
reachability Reachability
return GossipOverview
Exemplo n.º 1
0
 /// <summary>
 /// Marks the gossip as seen by this node (address) by updating the address entry in the 'gossip.overview.seen'
 /// </summary>
 /// <param name="node">TBD</param>
 /// <returns>TBD</returns>
 public Gossip Seen(UniqueAddress node)
 {
     if (SeenByNode(node))
     {
         return(this);
     }
     return(Copy(overview: _overview.Copy(seen: _overview.Seen.Add(node))));
 }