private ISession CreateSession(string clusterName) { if (_sessionConfigs.HasPath(clusterName) == false) throw new ConfigurationException(string.Format("Cannot find cluster configuration named '{0}'", clusterName)); // Get a cluster builder from the settings, build the cluster, and connect for a session var clusterSettings = new SessionSettings(_sessionConfigs.GetConfig(clusterName)); return clusterSettings.Builder.Build().Connect(); }
private ISession CreateSession(string clusterName) { if (_sessionConfigs.HasPath(clusterName) == false) { throw new ConfigurationException(string.Format("Cannot find cluster configuration named '{0}'", clusterName)); } // Get a cluster builder from the settings, build the cluster, and connect for a session var clusterSettings = new SessionSettings(_sessionConfigs.GetConfig(clusterName)); return(clusterSettings.Builder.Build().Connect()); }