Click or drag to resize

IClusterableServerInvalidate Method (String, TopologyVersion)

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

Namespace:  MongoDB.Driver.Core.Servers
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
void Invalidate(
	string reasonInvalidated,
	TopologyVersion responseTopologyVersion
)

Parameters

reasonInvalidated
Type: SystemString
The reason the instance was invalidated.
responseTopologyVersion
Type: MongoDB.Driver.Core.ServersTopologyVersion
The topology of the version of the response that invalidated this instance.
See Also