Exemplo n.º 1
0
 internal Session(ICluster cluster, Configuration configuration, string keyspace, int binaryProtocolVersion)
 {
     Cluster               = cluster;
     Configuration         = configuration;
     Keyspace              = keyspace;
     BinaryProtocolVersion = binaryProtocolVersion;
     UserDefinedTypes      = new UdtMappingDefinitions(this);
     _connectionPool       = new ConcurrentDictionary <IPEndPoint, HostConnectionPool>();
 }
Exemplo n.º 2
0
 internal Session(ICluster cluster, Configuration configuration, string keyspace, Serializer serializer)
 {
     _serializer      = serializer;
     Cluster          = cluster;
     Configuration    = configuration;
     Keyspace         = keyspace;
     UserDefinedTypes = new UdtMappingDefinitions(this, serializer);
     _connectionPool  = new ConcurrentDictionary <IPEndPoint, HostConnectionPool>();
 }