public CDefaultAppImp() { m_timerManager = CreateTimerManager(); m_notificationCenter = CreateNotificationCenter(); m_processor = CreateCommandProcessor(); m_updatables = new CUpdatableList(2); m_updatables.Add(m_timerManager); }
////////////////////////////////////////////////////////////////////////////// #region Lifecycle public virtual void Start() { ResolveCommands(); CTimerManager.ScheduleTimerOnce(delegate() { ExecStartupConfigs(); RegisterCommandNotifications(); }); }
private void Reset() { next = prev = null; helpListNext = null; manager = null; callback1 = null; callback2 = null; numRepeats = numRepeated = 0; timeout = 0; fireTime = 0; scheduleTime = 0; cancelled = false; name = null; userData = null; }
private void Save(bool immediately) { if (m_path == null) { return; } if (immediately) { CTimerManager.CancelTimer(SaveDelayed); Save(); } else { CTimerManager.ScheduleTimerOnce(SaveDelayed); } }
////////////////////////////////////////////////////////////////////////////// #region Shared instance static CTimerManager() { s_sharedInstance = new CTimerManager(); }
public CObjectsPoolEntry AutoRecycle() { CTimerManager.ScheduleTimer(Recycle); return(this); }
public CNotificationCenter(CTimerManager timerManager) { m_timerManager = timerManager; m_registerMap = new Dictionary <string, CNotificationDelegateList>(); m_notificatoinsPool = new CObjectsPool <CNotification>(); }