Ejemplo n.º 1
0
		public ObjectManager()
		{
			this.m_data = new Dictionary<string, IPoolableFactory>();
			this.RegistClassType("Self.ObjectSet", new ObjectSetFactory());

			var p = new ObjectPool(this);
			this.m_idlePool = p;

			p = new ObjectPool(this, true);
			p.CreateAdminNode();
			this.m_busyPool = p;
			this.m_timer = new Timer(new TimerCallback(this.Cleanup));
			this.m_timer.Change(1000, 0);
		}
Ejemplo n.º 2
0
        public ObjectManager()
        {
            this.m_data = new Dictionary <string, IPoolableFactory>();
            this.RegistClassType("Self.ObjectSet", new ObjectSetFactory());

            var p = new ObjectPool(this);

            this.m_idlePool = p;

            p = new ObjectPool(this, true);
            p.CreateAdminNode();
            this.m_busyPool = p;
            this.m_timer    = new Timer(new TimerCallback(this.Cleanup));
            this.m_timer.Change(1000, 0);
        }