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