Table of Contents

Method Invalidate

Namespace
MongoDB.Driver.Core.Servers
Assembly
MongoDB.Driver.Core.dll

Invalidate(string)

Invalidates this instance (sets the server type to Unknown and clears the connection pool).

[Obsolete("Use Invalidate with TopologyVersion instead.")]
void Invalidate(string reasonInvalidated)

Parameters

reasonInvalidated string

The reason the instance was invalidated.

Invalidate(string, TopologyVersion)

Invalidates this instance (sets the server type to Unknown and clears the connection pool).

void Invalidate(string reasonInvalidated, TopologyVersion responseTopologyVersion)

Parameters

reasonInvalidated string

The reason the instance was invalidated.

responseTopologyVersion TopologyVersion

The topology of the version of the response that invalidated this instance.