public IRecyclePool Create(string poolType, IRecycleProcesser processer, IRecycleFactory factory = null) { RecyclePool pool = null; if (!this.pools.TryGetValue(poolType, out pool)) { this.pools.Add(poolType, pool = new RecyclePool(processer, factory)); } return(pool); }
public IRecyclePool Find(string poolType) { RecyclePool pool = null; if (this.pools.TryGetValue(poolType, out pool)) { return(pool); } else { return(null); } }