public CLicenceCheckElementNbPourSession(CLicenceCheckElementNb parent, int nIdSession)
 {
     m_LicenceCheckElementNb = parent;
     m_nIdSession            = nIdSession;
     m_StackModifEnCours     = new Stack <Dictionary <string, int> >();
     CGestionnaireObjetsAttachesASession.AttacheObjet(nIdSession, this);
 }
Exemplo n.º 2
0
 ////////////////////////////////////////////////////////////////////////
 public void Dispose()
 {
     CGestionnaireObjetsAttachesASession.DetacheObjet(m_nIdSession, this);
     foreach (IDatabaseConnexion connexion in m_connexions.Values)
     {
         try
         {
             connexion.Dispose();
         }
         catch {}
     }
     m_connexions.Clear();
 }
Exemplo n.º 3
0
        ///////////////////////////////////////////////
        public void CloseSession()
        {
            string strMessage = I.T("Closing session @1|110", IdSession.ToString());

            try
            {
                strMessage += " " + GetInfoUtilisateur().NomUtilisateur;
            }
            catch
            {
            }
            CAuthentificationSessionSousSession authSousSession = m_authentification as CAuthentificationSessionSousSession;

            if (authSousSession != null)
            {
                ISessionClientSurServeur sessionPrinc = CGestionnaireSessions.GetSessionClientSurServeurStatic(authSousSession.IdSessionPrincipale);
                if (sessionPrinc != null)
                {
                    sessionPrinc.RemoveSousSession(this);
                }
            }

            C2iEventLog.WriteInfo(strMessage, NiveauBavardage.VraiPiplette);
            int      nIdSession = IdSession;
            DateTime dt         = DateTime.Now;

            MyCloseSession();
            TimeSpan sp = DateTime.Now - dt;

            Console.WriteLine("SessionServeur closing " + nIdSession + " / 1 : " + sp.TotalMilliseconds);
            CGestionnaireObjetsAttachesASession.OnCloseSession(IdSession);
            sp = DateTime.Now - dt;
            Console.WriteLine("SessionServeur closing " + nIdSession + " / 2 : " + sp.TotalMilliseconds);
            CGestionnaireSessions.CloseSession(this);
            sp = DateTime.Now - dt;
            Console.WriteLine("SessionServeur closing " + nIdSession + " / 3 : " + sp.TotalMilliseconds);
            CGestionnaireObjetsAttachesASession.OnCloseSession(IdSession);            //Si jamais le close sessino a réaloué des éléments
            sp = DateTime.Now - dt;
            Console.WriteLine("SessionServeur closing " + nIdSession + " / 4 : " + sp.TotalMilliseconds);
            m_sponsor.Unregister(m_sessionSurClient);
            sp = DateTime.Now - dt;
            Console.WriteLine("SessionServeur closing " + nIdSession + " / 5 : " + sp.TotalMilliseconds);
            m_sessionSurClient = null;
        }
Exemplo n.º 4
0
 ////////////////////////////////////////////////////////////////////////
 public CConnexionsParSession(int nIdSession)
     : base(nIdSession)
 {
     CGestionnaireObjetsAttachesASession.AttacheObjet(nIdSession, this);
 }
Exemplo n.º 5
0
 public void Dispose()
 {
     CGestionnaireObjetsAttachesASession.DetacheObjet(m_nIdSession, this);
 }
Exemplo n.º 6
0
 /// /////////////////////////////////////////////////////////////
 public CGestionnaireTransactionsNotification(int nIdSession)
 {
     m_nIdSession = nIdSession;
     CGestionnaireObjetsAttachesASession.AttacheObjet(nIdSession, this);
 }
Exemplo n.º 7
0
 public CTransactionCheckNbElements(int nIdSession)
 {
     m_nIdSession = nIdSession;
     CGestionnaireObjetsAttachesASession.AttacheObjet(nIdSession, this);
 }