Method IsStalerThan
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
IsStalerThan(TopologyVersion, TopologyVersion)
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 CompareTopologyVersion(TopologyVersion, TopologyVersion) for more information. In the case that this == y
, y
will be considered to be fresher.
public static bool IsStalerThan(TopologyVersion x, TopologyVersion y)
Parameters
The first TopologyVersion.
The other TopologyVersion.
Returns
Whether or not this TopologyVersion is staler than y
.