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
x
TopologyVersionThe first TopologyVersion.
y
TopologyVersionThe other TopologyVersion.
Returns
- int
Less than zero indicates that the
x
is staler than they
. Zero indicates that thex
description is equal to they
. Greater than zero indicates that thex
is fresher than they
.