Exemplo n.º 1
0
 public ObjectPool(IObjectPoolFactory <T> factory, int growValue = 10)
 {
     this.factory   = factory;
     this.growValue = growValue;
 }
Exemplo n.º 2
0
 public ObjectPool(IObjectPoolFactory <T> factory)
 {
     _returnedObjects = new Queue <ObjectPoolHandle <T> >();
     _borrowedObjects = new Dictionary <string, ObjectPoolHandle <T> >();
     _factory         = factory;
 }