Ejemplo n.º 1
0
        public TaskId(StageId stageId, int id)
        {
            if (id < 0)
            {
                throw new ArgumentOutOfRangeException("id", "The id cannot be less than 0.");
            }

            this.FullId = $"{stageId.QueryId.Id}.{stageId.Id}.{id}";
        }
Ejemplo n.º 2
0
 public StageInfo(
     StageId stageId,
     StageState state,
     Uri self,
     PlanFragment plan,
     IEnumerable <string> types,
     StageStats stageStats,
     IEnumerable <TaskInfo> tasks,
     IEnumerable <StageInfo> subStages,
     ExecutionFailureInfo failureCause
     )
 {
     this.StageId      = stageId ?? throw new ArgumentNullException("stageId");
     this.State        = state;
     this.Self         = self ?? throw new ArgumentNullException("self");
     this.Plan         = plan;
     this.Types        = types;
     this.StageStats   = stageStats ?? throw new ArgumentNullException("stageStats");
     this.Tasks        = tasks ?? throw new ArgumentNullException("tasks");
     this.SubStages    = subStages ?? throw new ArgumentNullException("subStages");
     this.FailureCause = failureCause;
 }