Exemplo n.º 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");
     }
 }
Exemplo n.º 2
0
 public void PauseWork()
 {
     PauseEvent.Reset();
 }
Exemplo n.º 3
0
        public void Resume()
        {
            PauseEvent.Reset();

            ResumeEvent.Set();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Block thread, pause the simulation in current state
 /// </summary>
 public static void Pause()
 {
     SimulationShouldPause = true;
     PauseEvent.Reset();
 }
Exemplo n.º 5
0
 public void Start()
 {
     RunningEvent.Set();
     PauseEvent.Reset();
 }