public GenericObjectPool(IPooledObjectFactory <T> factory, GenericObjectPoolConfig genericObjectPoolConfig) : base(genericObjectPoolConfig) { if (factory == null) { throw new ArgumentNullException(nameof(factory)); } this._factory = factory; this._idleObjects = new BlockingList <IPooledObject <T> >(BorrowStrategy.LIFO); this.SetConfig(genericObjectPoolConfig); StartEvictor(genericObjectPoolConfig.TimeBetweenEvictionRunsMillis); }
public GenericObjectPool(IPooledObjectFactory <T> factory, GenericObjectPoolConfig config, AbandonedConfig abandonedConfig) : this(factory, config) { this.SetAbandonedConfig(abandonedConfig); }