Table of Contents

Method IsStalerThan

Namespace
MongoDB.Driver.Core.Servers
Assembly
MongoDB.Driver.Core.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

x TopologyVersion

The first TopologyVersion.

y TopologyVersion

The other TopologyVersion.

Returns

bool

Whether or not this TopologyVersion is staler than y.