public void TestFixtureSetUp()
 {
     var ipEndpoint = UriExtensions.GetEndPoint(Address);
     var connectionPoolConfig = new PoolConfiguration();
     _connectionPool = new DefaultConnectionPool(connectionPoolConfig, ipEndpoint);
     _ioStrategy = new AwaitableIOStrategy(_connectionPool);
 }
예제 #2
0
        public void TestFixtureSetUp()
        {
            var ipEndpoint           = UriExtensions.GetEndPoint(Address);
            var connectionPoolConfig = new PoolConfiguration();

            _connectionPool = new DefaultConnectionPool(connectionPoolConfig, ipEndpoint);
            _ioStrategy     = new AwaitableIOStrategy(_connectionPool);
        }
        public void TestFixtureSetup()
        {
            _config = new ConnectionPoolConfig(10, 5, 1000, 1000, 1000, 1000);

            var factory = ConnectionFactory.GetDefault();
            _connectionPool = new DefaultConnectionPool(_config, Node.GetEndPoint(Server), factory);
            _connectionPool.Initialize();

            _provider = new FileSystemConfigProvider(_defaultClientConfig, ConnectionFactory.GetDefault());
            _configInfo = _provider.GetCached();

            _ioStrategy = new AwaitableIOStrategy(_connectionPool, null);
            _state = _state = new ClusterState(_defaultClientConfig);
        }