Пример #1
0
 public virtual void Continue()
 {
     try
     {
         PauseEvent.Reset();
         //Timer.Change(Profile.Schedule.NextDueTime(_iterations), Profile.Schedule.NextInterval());
     }
     catch (Exception e)
     {
         LogException(e, "failed Continue process");
     }
 }
Пример #2
0
 public void PauseWork()
 {
     PauseEvent.Reset();
 }
Пример #3
0
        public void Resume()
        {
            PauseEvent.Reset();

            ResumeEvent.Set();
        }
Пример #4
0
 /// <summary>
 /// Block thread, pause the simulation in current state
 /// </summary>
 public static void Pause()
 {
     SimulationShouldPause = true;
     PauseEvent.Reset();
 }
Пример #5
0
 public void Start()
 {
     RunningEvent.Set();
     PauseEvent.Reset();
 }