Example #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;
        }
Example #2
0
 /// <summary>
 /// PutPool
 /// </summary>
 /// <param name="conn"></param>
 public void PutPool(ConnBase conn)
 {
     conn.Close();
     conn.IsUsing             = false;
     this.InnerList[conn.IDX] = conn;
 }