/// <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); }
/// <summary> /// Release resources /// </summary> public void Dispose() { m_localData = null; m_timerPeriodicUpdate.Dispose(); m_timerSpecificUpdate.Dispose(); m_timerSchedule.Dispose(); }
/// <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(); }
/// <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(); }
/// <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); } }
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); }
/// <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(); }
/// <summary> /// Class constructor /// </summary> /// <param name="localData">Local data reference</param> public CSystemFilesManager(CLocalData localData) { m_localData = localData; }