Class TopologyVersion
Represents a topology description.
- Inheritance
-
Topology
Version
- Implements
- Inherited Members
Remarks
Comparing topology descriptions freshness does not exhibit the reversal property of
inequalities e.g. IsStalerThan(a, b) (a "<" b) does not imply !IsStalerThan(b, a) (b ">" a)
See Compare
Constructors
- Topology
Version(Object Id, long) Initializes a new instance of the Topology
Version class.
Properties
- Counter
Gets the process identifier.
- Process
Id Gets the process identifier.
Methods
- Compare
Topology Version(Topology Version, Topology Version) 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.
- Equals(Topology
Version) Indicates whether the current object is equal to another object of the same type.
- Equals(object)
Determines whether the specified object is equal to the current object.
- From
Bson Document(Bson Document) Attempts to create a TopologyVersion from the supplied BsonDocument.
- Get
Hash Code() Serves as the default hash function.
- Is
Fresher Than(Topology Version, Topology Version) Gets whether or not
x
is fresher thany
. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsFresherThan(b) (a "<" b) does not imply !b.IsFresherThan(a) (b ">" a) See CompareTopology for more information. In the case that this.Equals(Version(Topology Version, Topology Version) y
),y
will be considered to be fresher.
- Is
Fresher Than OrEqual To(Topology Version, Topology Version) Gets whether or not
x
is fresher than or Equal toy
. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsFresherThan(b) (a "<" b) does not imply !b.IsFresherThan(a) (b ">" a) See CompareTopology for more information. In the case that this.Equals(Version(Topology Version, Topology Version) y
),y
will be considered to be fresher.
- Is
Staler Than(Topology Version, Topology Version) Gets whether or not
x
is staler than or Equal toy
. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsStalerThan(b) (a "<" b) does not imply !b.IsStalerThan(a) (b ">" a). See CompareTopology for more information. In the case that this ==Version(Topology Version, Topology Version) y
,y
will be considered to be fresher.
- Is
Staler Than OrEqual To(Topology Version, Topology Version) Gets whether or not
x
is staler than or Equal toy
. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsStalerThan(b) (a "<" b) does not imply !b.IsStalerThan(a) (b ">" a). See CompareTopology for more information. In the case that this ==Version(Topology Version, Topology Version) y
,y
will be considered to be fresher.
- To
Bson Document() Converts this object to a BsonDocument.
- To
String() Returns a string that represents the current object.