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