public IStageBuilder AddStage(string id, StageTriggerMode triggerMode)
        {
            var stageBuilder = new StageBuilder(this, id, triggerMode);

            _stageBuilders.Add(stageBuilder);
            return(stageBuilder);
        }
示例#2
0
 public Stage(UniqueStageId stageId, StageTriggerMode triggerMode, params Activity[] activities)
 {
     _stageId    = stageId;
     _activities = activities;
     _state      = triggerMode == StageTriggerMode.Automatic
         ? StageState.NotStarted
         : StageState.OnHold;
 }
 public IStageBuilder AddStage(StageTriggerMode triggerMode)
 {
     _counter++;
     return(AddStage(_counter.ToString(), triggerMode));
 }
示例#4
0
 public IStageBuilder AddStage(string id, StageTriggerMode triggerMode)
 {
     return(_parent.AddStage(id, triggerMode));
 }
示例#5
0
 public IStageBuilder AddStage(StageTriggerMode triggerMode)
 {
     return(_parent.AddStage(triggerMode));
 }
 public StageBuilder(PipelineBuilder parent, string id, StageTriggerMode triggerMode)
 {
     _parent      = parent;
     _id          = id;
     _triggerMode = triggerMode;
 }
示例#7
0
 public Stage(string stageName, StageTriggerMode triggerMode)
 {
     Name                = stageName;
     TriggerMode         = triggerMode;
     LastActivityDateUtc = DateTime.UtcNow;
 }