Esempio n. 1
0
 public void On(StepExecutedEvent evnt)
 {
     _currentStep++;
     _failures = 0;
     _state    = _currentStep == _steps.Length
         ? ActivityState.Finished
         : ActivityState.WaitingForExternalDependency;
 }
Esempio n. 2
0
        public void On(StepExecutedEvent evnt)
        {
            var activity = _activities.First(x => x.ActivityId == evnt.StepId.ActivityId);

            activity.On(evnt);

            UpdateState();
        }
Esempio n. 3
0
 protected bool Equals(StepExecutedEvent other)
 {
     return(Equals(_stepId, other._stepId));
 }
Esempio n. 4
0
        public void On(StepExecutedEvent evnt)
        {
            var stage = _stages.First(x => x.StageId == evnt.StepId.StageId);

            stage.On(evnt);
        }