20 references to new
Microsoft.Build (13)
BackEnd\BuildManager\BuildManager.cs (3)
1871ReportResultsToSubmission<BuildRequestData, BuildResult>(new BuildResult(submission.BuildRequest!, ex)); 2347_resultsCache!.AddResult(new BuildResult(request, e)); 2512_resultsCache!.AddResult(new BuildResult(buildSubmission.BuildRequest,
BackEnd\BuildManager\BuildSubmission.cs (1)
219return new(BuildRequest!, exception);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
273BuildResult result = entry.Result ?? new BuildResult(entry.Request, new BuildAbortedException());
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
434_outstandingResults[requestEntry.Key] = new BuildResult(requestEntry.Value, new BuildAbortedException()); 444_outstandingResults[request.NodeRequestId] = new BuildResult(request, new BuildAbortedException());
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
866result = new BuildResult(_requestEntry.Request, thrownException); 1019results[i] = new BuildResult(new BuildRequest(), new BuildAbortedException());
BackEnd\Components\Scheduler\Scheduler.cs (2)
1608_resultsCache.AddResult(new BuildResult(request.BuildRequest, new BuildAbortedException())); 1772var result = new BuildResult(
BackEnd\Shared\BuildResult.cs (2)
162: this(request, null) 182: this(request, null)
Microsoft.Build.Engine.UnitTests (7)
BackEnd\BuildRequestEngine_Tests.cs (4)
105BuildResult errorResult = new BuildResult(_entry.Request, new InvalidOperationException("ContinueRequest not received in time.")); 115BuildResult res = new BuildResult(_entry.Request, new BuildAbortedException()); 128BuildResult res = new BuildResult(_entry.Request, new BuildAbortedException()); 147BuildResult errorResult = new BuildResult(_entry.Request, new InvalidOperationException("ContinueRequest not received in time."));
BackEnd\BuildResult_Tests.cs (2)
86result = new BuildResult(request, e); 314BuildResult result = new BuildResult(request, new BuildAbortedException());
BackEnd\ResultsCache_Tests.cs (1)
130BuildResult result2 = new BuildResult(request, new Exception("Test exception"));