public void Start() { if (!Running) { if (Elapsed == null) { throw new InvalidOperationException(); } m_task = new RebirthTask(Elapsed, Interval, true); m_thread.AddScheduledTask(m_task); Running = true; } }
public void RemoveScheduledTask(RebirthTask task) => m_pScheduler.Remove(task);
//----------------------------------------------------------------------------- public void AddScheduledTask(RebirthTask task) => m_pScheduler.Add(task);