예제 #1
0
 public void Dispose()
 {
     if (m_session != null)
     {
         m_session.CloseSession();
         m_session.Dispose();
     }
 }
예제 #2
0
 //------------------------------------------------------------------------
 private void AssureSession()
 {
     //S'assure de la validité de la session
     if (m_session != null && !m_session.IsConnected)
     {
         m_session.CloseSession();
         m_session.Dispose();
         m_session = null;
     }
     if (m_session == null)
     {
         m_session = CSessionClient.CreateInstance();
         CResultAErreur result = m_session.OpenSession(new CAuthentificationSessionProcess(), "Steps looper",
                                                       ETypeApplicationCliente.Service);
         if (!result)
         {
             //C2iEventLog.WriteErreur("DEBUG_TODO - AssureSession() - Failed to create Step session looper" + Environment.NewLine + result.MessageErreur);
             m_session = null;
         }
     }
 }