Method Invalidate
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
reasonInvalidatedstringThe 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
reasonInvalidatedstringThe reason the instance was invalidated.
responseTopologyVersionTopologyVersionThe topology of the version of the response that invalidated this instance.