Beispiel #1
0
 public ConnectionPool(PooledItemFactoryBase <T> factoryStrategy, int poolSize, LoadBalancingStrategy <PooledItem <T> > loadbalancerStrategy)
 {
     _poolSize             = poolSize;
     _factoryStrategy      = factoryStrategy;
     _loadBalancerStrategy = loadbalancerStrategy;
 }
Beispiel #2
0
 public ConnectionPool(PooledItemFactoryBase <T> factoryStrategy, int poolSize)
 {
     _poolSize             = poolSize;
     _factoryStrategy      = factoryStrategy;
     _loadBalancerStrategy = new LoadBalancingStrategy <PooledItem <T> >(_factoryPool);
 }