public void Close()
 {
     if (this.pool != null)
     {
         this.pool.DecrementReferenceCount();
         this.pool = null;
     }
 }
Exemple #2
0
 public SessionPool(ConnectionPool pool, SessionKey key, ObjectPool<PooledSession> sessionPool)
 {
     this.connectionPool = pool;
     this.sessionKey = key;
     this.sessionPool = sessionPool;
 }
Exemple #3
0
 public PooledConnection(ConnectionPool pool)
 {
     this.pool = pool;
     this.pool.IncrementReferenceCount();
 }
 public void Stop()
 {
     if (this.stopped.CompareAndSet(false, true))
     {
         try
         {
             this.connection.Close();
         }
         catch (Exception e)
         {
             Tracer.Warn("PCF: Caught exception while closing Connection: " + e.Message);
         }
         this.connection = null;
     }
 }
 public PooledConnection(ConnectionPool pool)
 {
     this.pool = pool;
     this.pool.IncrementReferenceCount();
 }