예제 #1
0
        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;
            }
        }
예제 #2
0
 public void RemoveScheduledTask(RebirthTask task) => m_pScheduler.Remove(task);
예제 #3
0
        //-----------------------------------------------------------------------------

        public void AddScheduledTask(RebirthTask task) => m_pScheduler.Add(task);