Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public IRecyclePool Find(string poolType)
        {
            RecyclePool pool = null;

            if (this.pools.TryGetValue(poolType, out pool))
            {
                return(pool);
            }
            else
            {
                return(null);
            }
        }