private void Observer_Stopped(Observer stoppedObserver) { if (ScreenSaverPreventer.IsRunning && Observers.All(observer => !observer.IsObserving)) { ScreenSaverPreventer.Stop(); } }
public override IEnumerable <ValidationResult> Validate() { Observers.All(observer => { observer.StateMachineSagaConfigured(this, _stateMachine); return(true); }); return(base.Validate()); }