private void InitializeHostDistances() { foreach (var host in AllHosts()) { InternalRef.RetrieveAndSetDistance(host); } }
/// <summary> /// Creates a new session on this cluster and using a keyspace an existing keyspace. /// </summary> /// <param name="keyspace">Case-sensitive keyspace name to use</param> public async Task <ISession> ConnectAsync(string keyspace) { return(await InternalRef.ConnectAsync(_sessionFactory, keyspace).ConfigureAwait(false)); }