TopologyVersion Class |
Namespace: MongoDB.Driver.Core.Servers
The TopologyVersion type exposes the following members.
Name | Description | |
---|---|---|
TopologyVersion |
Initializes a new instance of the TopologyVersion class.
|
Name | Description | |
---|---|---|
CompareTopologyVersion |
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(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
Equals(TopologyVersion) | Indicates whether the current object is equal to another object of the same type. | |
FromBsonDocument |
Attempts to create a TopologyVersion from the supplied BsonDocument.
| |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsFresherThan |
Gets whether or not x is fresher than y.
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 for more information.
In the case that this.Equals(y), y will be considered to be fresher.
| |
IsFresherThanOrEqualTo |
Gets whether or not x is fresher than or Equal to y.
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 for more information.
In the case that this.Equals(y), y will be considered to be fresher.
| |
IsStalerThan |
Gets whether or not x is staler than or Equal to y.
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 for more information.
In the case that this == y, y will be considered to be fresher.
| |
IsStalerThanOrEqualTo |
Gets whether or not x is staler than or Equal to y.
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 for more information.
In the case that this == y, y will be considered to be fresher.
| |
ToBsonDocument |
Converts this object to a BsonDocument.
| |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |