示例#1
0
        public void MergeResults(BuildResult results)
        {
            if (ConfigurationId != results.ConfigurationId)
            {
                throw new InvalidOperationException("Argument BuildResults have inconsistent ConfigurationId.");
            }
            if (GlobalRequestId != results.GlobalRequestId)
            {
                throw new InvalidOperationException("Argument BuildResults have inconsistent GlobalRequestId.");
            }
            if (NodeRequestId != results.NodeRequestId)
            {
                throw new InvalidOperationException("Argument BuildResults have inconsistent NodeRequestId.");
            }
            if (ParentGlobalRequestId != results.ParentGlobalRequestId)
            {
                throw new InvalidOperationException("Argument BuildResults have inconsistent ParentGlobalRequestId.");
            }
            if (SubmissionId != results.SubmissionId)
            {
                throw new InvalidOperationException("Argument BuildResults have inconsistent SubmissionId.");
            }

            CircularDependency |= results.CircularDependency;
            Exception           = Exception ?? results.Exception;
            foreach (var p in results.ResultsByTarget)
            {
                ResultsByTarget.Add(p.Key, p.Value);
            }
        }
示例#2
0
 public bool HasResultsForTarget(string target)
 {
     return(ResultsByTarget.ContainsKey(target));
 }
示例#3
0
 public void AddResultsForTarget(string target, TargetResult result)
 {
     ResultsByTarget.Add(target, result);
 }