57 references to WorkUnitActionCode
Microsoft.Build (41)
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 (3)
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)); 609if (targetResult.WorkUnitResult.ActionCode == WorkUnitActionCode.Stop)
BackEnd\Components\RequestBuilder\TargetEntry.cs (15)
371new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null), 450if (aggregateResult.ActionCode == WorkUnitActionCode.Stop) 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)); 677if (aggregateResult.ResultCode == WorkUnitResultCode.Failed && aggregateResult.ActionCode == WorkUnitActionCode.Stop) 732_targetResult = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null)); 785ErrorUtilities.VerifyThrow(_targetResult.WorkUnitResult.ActionCode == WorkUnitActionCode.Continue, "ActionCode must be Continue. ActionCode is {0}.", _state); 787_targetResult.WorkUnitResult.ActionCode = WorkUnitActionCode.Stop; 816WorkUnitActionCode finalActionCode = WorkUnitActionCode.Continue; 817WorkUnitResult lastResult = new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null); 843if (lastResult.ActionCode == WorkUnitActionCode.Stop) 845finalActionCode = WorkUnitActionCode.Stop; 853finalActionCode = WorkUnitActionCode.Stop;
BackEnd\Components\RequestBuilder\TaskBuilder.cs (15)
178WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null); 298WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null); 336if (aggregateResult.ActionCode == WorkUnitActionCode.Stop) 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); 510taskResult = new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null); 556WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null); 744WorkUnitActionCode actionCode = WorkUnitActionCode.Continue; 987actionCode = WorkUnitActionCode.Continue; 992actionCode = WorkUnitActionCode.Stop; 1010actionCode = WorkUnitActionCode.Continue;
BackEnd\Shared\WorkUnitResult.cs (6)
65private WorkUnitActionCode _actionCode; 78_actionCode = WorkUnitActionCode.Continue; 85internal WorkUnitResult(WorkUnitResultCode resultCode, WorkUnitActionCode actionCode, Exception e) 108internal WorkUnitActionCode ActionCode 154WorkUnitActionCode aggregateAction = _actionCode; 168if (result._actionCode == WorkUnitActionCode.Stop)
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);