예제 #1
0
        public FlattenedPlanFragment(string textPlan, PlanFragment fragment, IEnumerable <FlattenedNode> nodes)
        {
            if (string.IsNullOrEmpty(textPlan))
            {
                throw new ArgumentNullException("textPlan");
            }

            this.TextPlan = textPlan;
            this.Fragment = fragment ?? throw new ArgumentNullException("fragment");
            this.Nodes    = nodes ?? throw new ArgumentNullException("nodes");
        }
예제 #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;
 }