Click or drag to resize

TopologyVersionIsStalerThanOrEqualTo Method

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.

Namespace:  MongoDB.Driver.Core.Servers
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public static bool IsStalerThanOrEqualTo(
	TopologyVersion x,
	TopologyVersion y
)

Parameters

x
Type: MongoDB.Driver.Core.ServersTopologyVersion
The first TopologyVersion.
y
Type: MongoDB.Driver.Core.ServersTopologyVersion
The other TopologyVersion.

Return Value

Type: Boolean
Whether or not this TopologyVersion is staler than y.
See Also