public void Dispose() { if (m_session != null) { m_session.CloseSession(); m_session.Dispose(); } }
//------------------------------------------------------------------------ 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; } } }