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
reasonInvalidated
stringThe 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
stringThe reason the instance was invalidated.
responseTopologyVersion
TopologyVersionThe topology of the version of the response that invalidated this instance.