Esempio n. 1
0
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <remarks></remarks>
 public CImplIJBCHostControllerService()
 {
     m_localData              = new CLocalData();
     m_updatesManager         = new CUpdatesManager(m_localData);
     m_updaterFirmwareManager = new CUpdatesFirmwareManager(ref m_localData);
     m_eventLogRecorder       = new CEventLogRecorder(m_localData);
 }
Esempio n. 2
0
        /// <summary>
        /// Release resources
        /// </summary>
        public void Dispose()
        {
            m_localData = null;

            m_timerPeriodicUpdate.Dispose();
            m_timerSpecificUpdate.Dispose();
            m_timerSchedule.Dispose();
        }
Esempio n. 3
0
 /// <summary>
 /// Release resources
 /// </summary>
 public void Dispose()
 {
     m_localData = null;
     m_versionFileParser.Dispose();
     m_scheduleUpdates.Dispose();
     m_systemFilesManager.Dispose();
     m_comUpdaterService.Dispose();
     m_comRemoteManager.Dispose();
     m_comWebManager.Dispose();
 }
Esempio n. 4
0
        /// <summary>
        /// Class constructor
        /// </summary>
        /// <param name="localData">Local data reference</param>
        public CScheduleUpdates(CLocalData localData)
        {
            m_localData = localData;

            m_timerPeriodicUpdate.Elapsed += TimerEvent_PeriodicUpdate;
            m_timerSpecificUpdate.Elapsed += TimerEvent_SpecificUpdate;
            m_timerSchedule.Elapsed       += TimerEvent_ReScheduleTimers;

            m_timerSchedule.Interval = TIMER_RESCHEDULE;
            m_timerSchedule.Start();

            ReScheduleTimers();
        }
Esempio n. 5
0
        /// <summary>
        /// Class constructor
        /// </summary>
        /// <param name="localData">Local data reference</param>
        public CUpdatesManager(CLocalData localData)
        {
            m_localData         = localData;
            m_versionFileParser = new CVersionFileParser(m_localData);
            m_scheduleUpdates   = new CScheduleUpdates(m_localData);
            m_scheduleUpdates.Event_UpdateSystem += UpdateSystem;
            m_systemFilesManager = new CSystemFilesManager(m_localData);
            m_comUpdaterService  = new CComUpdaterService();
            m_comRemoteManager   = new CComRemoteManager();
            m_comWebManager      = new CComWebManager();

            //Descargar los archivos de actualización si no están descargados
            DownloadSwUpdate();

            //Enviar comprobación de actualización al Web Manager
            string ipWebManager = m_localData.GetWebManagerUri();

            if (!string.IsNullOrEmpty(ipWebManager))
            {
                m_comWebManager.StartUpdate(ipWebManager);
            }
        }
Esempio n. 6
0
 public CEventLogRecorder(CLocalData localData)
 {
     m_localData = localData;
 }
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="localData">Local data reference</param>
 public CUpdatesFirmwareManager(ref CLocalData localData)
 {
     m_systemFilesManager = new CSystemFilesManager(localData);
 }
Esempio n. 8
0
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="localData">Local data reference</param>
 public CVersionFileParser(CLocalData localData)
 {
     m_localData = localData;
 }
 /// <summary>
 /// Deletes all resources
 /// </summary>
 public void Dispose()
 {
     m_localData = null;
     m_comRemoteServer.Dispose();
 }
Esempio n. 10
0
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="localData">Local data reference</param>
 public CSystemFilesManager(CLocalData localData)
 {
     m_localData = localData;
 }