예제 #1
0
        ///////////////////////////////////////////
        internal static void OnCloseSession(int nIdSession)
        {
            CConnexionsParSession cnx = GetInstance().m_tableSessions[nIdSession] as CConnexionsParSession;

            GetInstance().m_tableSessions.Remove(nIdSession);
            if (cnx != null)
            {
                cnx.Dispose();
            }
        }
예제 #2
0
        ///////////////////////////////////////////
        private CConnexionsParSession GetConnexions(int nIdSession)
        {
            nIdSession = GetIdSessionForDb(nIdSession);
            CConnexionsParSession connexions = (CConnexionsParSession)m_tableSessions[nIdSession];

            if (connexions == null)
            {
                connexions = new CConnexionsParSession(nIdSession);
                m_tableSessions[nIdSession] = connexions;
            }
            return(connexions);
        }