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

            activity.On(evnt);

            UpdateState();
        }
Пример #3
0
 protected bool Equals(StepExecutedEvent other)
 {
     return(Equals(_stepId, other._stepId));
 }
Пример #4
0
        public void On(StepExecutedEvent evnt)
        {
            var stage = _stages.First(x => x.StageId == evnt.StepId.StageId);

            stage.On(evnt);
        }