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