Example #1
0
 public Pool(int startSize, IBurstStrategy burstStrategy, IPooledItemFactory <T> fillStrategy)
 {
     _burstStrategy = burstStrategy;
     Count          = startSize;
     _fillStrategy  = fillStrategy;
     Initialize();
 }
Example #2
0
 private void PrepareInterfaces()
 {
     _burstStrategy = new BurstStrategy();
     _fillStrategy  = new FillStrategy();
 }