56 references to WorkUnitActionCode
Microsoft.Build (40)
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)
271
results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped,
WorkUnitActionCode
.Continue, null));
293
results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped,
WorkUnitActionCode
.Continue, null));
609
if (targetResult.WorkUnitResult.ActionCode ==
WorkUnitActionCode
.Stop)
BackEnd\Components\RequestBuilder\TargetEntry.cs (15)
371
new WorkUnitResult(WorkUnitResultCode.Skipped,
WorkUnitActionCode
.Continue, null),
450
if (aggregateResult.ActionCode ==
WorkUnitActionCode
.Stop)
494
aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(WorkUnitResultCode.Canceled,
WorkUnitActionCode
.Stop, null));
541
aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null));
573
aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, null));
677
if (aggregateResult.ResultCode == WorkUnitResultCode.Failed && aggregateResult.ActionCode ==
WorkUnitActionCode
.Stop)
732
_targetResult = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, null));
785
ErrorUtilities.VerifyThrow(_targetResult.WorkUnitResult.ActionCode ==
WorkUnitActionCode
.Continue, "ActionCode must be Continue. ActionCode is {0}.", _state);
787
_targetResult.WorkUnitResult.ActionCode =
WorkUnitActionCode
.Stop;
816
WorkUnitActionCode
finalActionCode =
WorkUnitActionCode
.Continue;
817
WorkUnitResult lastResult = new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null);
843
if (lastResult.ActionCode ==
WorkUnitActionCode
.Stop)
845
finalActionCode =
WorkUnitActionCode
.Stop;
853
finalActionCode =
WorkUnitActionCode
.Stop;
BackEnd\Components\RequestBuilder\TaskBuilder.cs (14)
178
WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, null);
298
WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, null);
336
if (aggregateResult.ActionCode ==
WorkUnitActionCode
.Stop)
373
WorkUnitResult taskResult = new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, null);
388
return new WorkUnitResult(WorkUnitResultCode.Skipped,
WorkUnitActionCode
.Continue, null);
398
taskResult = new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null);
406
taskResult = new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, e);
471
taskResult = new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, e);
510
taskResult = new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null);
744
WorkUnitActionCode
actionCode =
WorkUnitActionCode
.Continue;
987
actionCode =
WorkUnitActionCode
.Continue;
992
actionCode =
WorkUnitActionCode
.Stop;
1010
actionCode =
WorkUnitActionCode
.Continue;
BackEnd\Shared\WorkUnitResult.cs (6)
65
private
WorkUnitActionCode
_actionCode;
78
_actionCode =
WorkUnitActionCode
.Continue;
85
internal WorkUnitResult(WorkUnitResultCode resultCode,
WorkUnitActionCode
actionCode, Exception e)
108
internal
WorkUnitActionCode
ActionCode
154
WorkUnitActionCode
aggregateAction = _actionCode;
168
if (result._actionCode ==
WorkUnitActionCode
.Stop)
Microsoft.Build.Engine.UnitTests (16)
BackEnd\BuildResult_Tests.cs (1)
101
result.AddResultsForTarget("bar", new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, new Exception())));
BackEnd\CacheSerialization_Tests.cs (5)
56
new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null)));
61
new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null)));
66
new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null)));
72
new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null)));
78
new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null)));
BackEnd\MockTaskBuilder.cs (4)
87
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Canceled,
WorkUnitActionCode
.Stop, null));
120
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Continue, null));
123
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, null));
127
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null));
BackEnd\RequestBuilder_Tests.cs (1)
323
return new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null));
BuildResultUtilities.cs (5)
32
return new WorkUnitResult(WorkUnitResultCode.Success,
WorkUnitActionCode
.Continue, null);
37
return new WorkUnitResult(WorkUnitResultCode.Skipped,
WorkUnitActionCode
.Continue, null);
42
return new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, null);
47
return new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Stop, e);
52
return new WorkUnitResult(WorkUnitResultCode.Failed,
WorkUnitActionCode
.Continue, null);