コード例 #1
0
 private static ISession CreateSession(CassandraCqlSessionManager sessionManager, ICassandraConfiguration cassandraConfiguration)
 {
     return(sessionManager.GetSession(cassandraConfiguration));
 }
コード例 #2
0
 public Cluster GetCluster(ICassandraConfiguration configuration)
 {
     return GetOrCreateCluster(configuration.Hosts, configuration.KeySpace, configuration.QueryTimeout, configuration.LocalDataCenter);
 }
コード例 #3
0
 public Cluster GetCluster(ICassandraConfiguration configuration)
 {
     return(GetOrCreateCluster(configuration.Hosts, configuration.KeySpace, configuration.QueryTimeout, configuration.LocalDataCenter));
 }
コード例 #4
0
        public ISession GetSession(ICassandraConfiguration configuration)
        {
            var cluster = GetOrCreateCluster(configuration.Hosts, configuration.KeySpace, configuration.QueryTimeout, configuration.LocalDataCenter);

            return GetOrCreateSession(cluster, configuration.KeySpace);
        }
コード例 #5
0
        public ISession GetSession(ICassandraConfiguration configuration)
        {
            var cluster = GetOrCreateCluster(configuration.Hosts, configuration.KeySpace, configuration.QueryTimeout, configuration.LocalDataCenter);

            return(GetOrCreateSession(cluster, configuration.KeySpace));
        }