Esempio n. 1
0
        /// <summary>
        /// PutPool
        /// </summary>
        /// <param name="conn"></param>
        public void PutPool(ConnBase conn)
        {
            conn.IsUsing = false;
            try
            {
                if (conn.Conn.State == ConnectionState.Open)
                {
                    conn.Close();
                }
            }
            catch
            {
            }

            this.InnerList[conn.IDX] = conn;
        }
Esempio n. 2
0
 /// <summary>
 /// PutPool
 /// </summary>
 /// <param name="conn"></param>
 public void PutPool(ConnBase conn)
 {
     conn.IsUsing             = false;
     this.InnerList[conn.IDX] = conn;
 }
Esempio n. 3
0
 public virtual void PubPool(ConnBase conn)
 {
 }