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); } }
public bool HasResultsForTarget(string target) { return(ResultsByTarget.ContainsKey(target)); }
public void AddResultsForTarget(string target, TargetResult result) { ResultsByTarget.Add(target, result); }