Increment() public méthode

Increments the version for this 'Node'.
public Increment ( VectorClock node ) : Gossip
node VectorClock
Résultat Gossip
 public void UpdateLatestGossip(Gossip newGossip)
 {
     // Updating the vclock version for the changes
     var versionedGossip = newGossip.Increment(_vclockNode);
     // Nobody else have seen this gossip but us
     var seenVersionedGossip = versionedGossip.OnlySeen(SelfUniqueAddress);
     // Update the state with the new gossip
     _latestGossip = seenVersionedGossip;
 }