Esempio n. 1
0
 /// <summary>
 /// 释放池中
 /// </summary>
 /// <param name="lastAccess"></param>
 public void Recycle(long lastAccess)
 {
     if (connection != null)
     {
         this.lastAccessed = lastAccess;
         hikariPool.Recycle(this);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 释放池中
 /// </summary>
 /// <param name="lastAccess"></param>
 public void Recycle(long lastAccess)
 {
     if (connection != null)
     {
         this.lastAccessed = lastAccess;
         hikariPool.Recycle(this);
     }
     if (connection.State != ConnectionState.Open)
     {
         this.Close();
     }
 }