Click or drag to resize

ISessionStateGetConnectedHosts Method

The hosts to which the ISession is connected to, at the time this state was obtained.

Please note that this method really returns the hosts for which the session currently holds a connection pool. As such, it's unlikely but not impossible for a host to be listed in the output of this method but to have GetOpenConnections(Host) return 0, if the pool itself is created but no connections have been successfully opened yet.

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax
C#
IReadOnlyCollection<Host> GetConnectedHosts()

Return Value

Type: IReadOnlyCollectionHost
See Also