38 references to WorkUnitResult
Microsoft.Build (22)
BackEnd\Components\ProjectCache\CacheResult.cs (2)
127? new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null) 128: new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
271results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null)); 293results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null));
BackEnd\Components\RequestBuilder\TargetEntry.cs (7)
371new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null), 494aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(WorkUnitResultCode.Canceled, WorkUnitActionCode.Stop, null)); 541aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null)); 573aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null)); 732_targetResult = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null)); 817WorkUnitResult lastResult = new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null); 861return new WorkUnitResult(aggregatedTaskResult, finalActionCode, lastResult.Exception);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (10)
178WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null); 298WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null); 373WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null); 388return new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null); 398taskResult = new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null); 406taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, e); 471taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, e); 483taskResult = new WorkUnitResult(WorkUnitResultCode.Success, taskResult.ActionCode, taskResult.Exception); 510taskResult = new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null); 1015WorkUnitResult result = new WorkUnitResult(resultCode, actionCode, null);
BackEnd\Shared\WorkUnitResult.cs (1)
178return new WorkUnitResult(aggregateResult, aggregateAction, aggregateException);
Microsoft.Build.Engine.UnitTests (16)
BackEnd\BuildResult_Tests.cs (1)
101result.AddResultsForTarget("bar", new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, new Exception())));
BackEnd\CacheSerialization_Tests.cs (5)
56new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null))); 61new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null))); 66new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null))); 72new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null))); 78new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null)));
BackEnd\MockTaskBuilder.cs (4)
87return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Canceled, WorkUnitActionCode.Stop, null)); 120return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Continue, null)); 123return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null)); 127return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null));
BackEnd\RequestBuilder_Tests.cs (1)
323return new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null));
BuildResultUtilities.cs (5)
32return new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null); 37return new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null); 42return new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null); 47return new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, e); 52return new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Continue, null);