Method CompareTopologyVersion
CompareTopologyVersion(TopologyVersion, TopologyVersion)
Compares a local TopologyVersion with a server's TopologyVersion and indicates whether the local
TopologyVersion is staler, fresher, or equal to the server's TopologyVersion.
Per the SDAM specification, if the ProcessIds are not equal, this method assumes that
y is more recent. This means that this method does not exhibit
the reversal properties of inequalities i.e. a "<" b does not imply b ">" a.
public static int CompareTopologyVersion(TopologyVersion x, TopologyVersion y)
Parameters
xTopologyVersionThe first TopologyVersion.
yTopologyVersionThe other TopologyVersion.
Returns
- int
Less than zero indicates that the
xis staler than they. Zero indicates that thexdescription is equal to they. Greater than zero indicates that thexis fresher than they.