public RiakNode(IRiakNodeConfiguration nodeConfiguration) { // assume that if the node has a pool size of 0 then the intent is to have the connections // made on the fly if (nodeConfiguration.PoolSize == 0) { _connectionManager = new RiakOnTheFlyConnection(nodeConfiguration); } else { _connectionManager = new RiakConnectionPool(nodeConfiguration); } }
public RiakNode( IRiakNodeConfiguration nodeConfig, IRiakAuthenticationConfiguration authConfig, IRiakConnectionFactory connectionFactory) { // assume that if the node has a pool size of 0 then the intent is to have the connections // made on the fly if (nodeConfig.PoolSize == 0) { connections = new RiakOnTheFlyConnection(nodeConfig, authConfig, connectionFactory); } else { connections = new RiakConnectionPool(nodeConfig, authConfig, connectionFactory); } }