Bamboo.Prevalence.AlarmClock.Resume C# (CSharp) Метод

Resume() публичный Метод

Resumes the clock. The property Now returns to its normal behavior.
You should not call this method. It is used internally by the prevalence engine to execute a command as if in a specific moment in time.
public Resume ( ) : void
Результат void
		public void Resume()
		{
			if (!_paused)
			{
				throw new InvalidOperationException("AlarmClock is not paused!");
			}
			_paused = false;
		}

Usage Example

 /// <summary>
 /// Resumes the normal operations of the engine.
 /// </summary>
 public void Resume()
 {
     if (_paused)
     {
         _clock.Resume();
         _paused = false;
     }
 }