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