Esempio n. 1
0
 public void Close()
 {
     if (this.pool != null)
     {
         this.pool.DecrementReferenceCount();
         this.pool = null;
     }
 }
Esempio n. 2
0
 public SessionPool(ConnectionPool pool, SessionKey key, ObjectPool<PooledSession> sessionPool)
 {
     this.connectionPool = pool;
     this.sessionKey = key;
     this.sessionPool = sessionPool;
 }
Esempio n. 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;
     }
 }
Esempio n. 5
0
 public PooledConnection(ConnectionPool pool)
 {
     this.pool = pool;
     this.pool.IncrementReferenceCount();
 }