Exemple #1
0
        /// <include file='Doc/en_EN/FbConnection.xml' path='doc/class[@name="FbConnection"]/method[@name="GetPooledConnectionCount(FbConnection)"]/*'/>
        public static int GetPooledConnectionCount(FbConnection connection)
        {
            FbPoolManager    manager = FbPoolManager.Instance;
            FbConnectionPool pool    = manager.FindPool(connection.ConnectionString);

            if (pool != null)
            {
                return(pool.Count);
            }

            return(0);
        }
Exemple #2
0
        /// <include file='Doc/en_EN/FbConnection.xml' path='doc/class[@name="FbConnection"]/method[@name="ClearPool(FbConnection)"]/*'/>
        public static void ClearPool(FbConnection connection)
        {
            FbPoolManager manager = FbPoolManager.Instance;

            manager.ClearPool(connection.ConnectionString);
        }
Exemple #3
0
        /// <include file='Doc/en_EN/FbConnection.xml' path='doc/class[@name="FbConnection"]/method[@name="ClearAllPools"]/*'/>
        public static void ClearAllPools()
        {
            FbPoolManager manager = FbPoolManager.Instance;

            manager.ClearAllPools();
        }