42 instantiations of WorkUnitResult
Microsoft.Build (26)
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)
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));
BackEnd\Components\RequestBuilder\TargetEntry.cs (8)
371
new
WorkUnitResult
(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null),
433
WorkUnitResult aggregateResult = new
WorkUnitResult
();
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));
732
_targetResult = new TargetResult(Array.Empty<TaskItem>(), new
WorkUnitResult
(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null));
817
WorkUnitResult lastResult = new
WorkUnitResult
(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null);
861
return new
WorkUnitResult
(aggregatedTaskResult, finalActionCode, lastResult.Exception);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (12)
178
WorkUnitResult taskResult = new
WorkUnitResult
(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
298
WorkUnitResult taskResult = new
WorkUnitResult
(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
326
WorkUnitResult aggregateResult = new
WorkUnitResult
();
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);
483
taskResult = new
WorkUnitResult
(WorkUnitResultCode.Success, taskResult.ActionCode, taskResult.Exception);
510
taskResult = new
WorkUnitResult
(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null);
556
WorkUnitResult taskResult = new
WorkUnitResult
(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
1015
WorkUnitResult result = new
WorkUnitResult
(resultCode, actionCode, null);
BackEnd\Shared\WorkUnitResult.cs (2)
138
return new
WorkUnitResult
(translator);
178
return new
WorkUnitResult
(aggregateResult, aggregateAction, aggregateException);
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);
38 references to WorkUnitResult
Microsoft.Build (26)
BackEnd\Components\ProjectCache\CacheResult.cs (1)
124
private static
WorkUnitResult
CreateWorkUnitResult(BuildResultCode resultCode)
BackEnd\Components\RequestBuilder\ITaskBuilder.cs (1)
54
Task<
WorkUnitResult
> ExecuteTask(TargetLoggingContext targetLoggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken);
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
433
WorkUnitResult
aggregateResult = new WorkUnitResult();
464
WorkUnitResult
bucketResult = null;
813
private async Task<
WorkUnitResult
> ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)
817
WorkUnitResult
lastResult = new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (13)
152
public async Task<
WorkUnitResult
> ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)
178
WorkUnitResult
taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
294
private async Task<
WorkUnitResult
> ExecuteTask(TaskExecutionMode mode, Lookup lookup)
298
WorkUnitResult
taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
326
WorkUnitResult
aggregateResult = new WorkUnitResult();
369
private async Task<
WorkUnitResult
> ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary<string, string> lookupHash)
373
WorkUnitResult
taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
554
private
WorkUnitResult
ExecuteTaskInSTAThread(ItemBucket bucket, TaskLoggingContext taskLoggingContext, IDictionary<string, string> taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)
556
WorkUnitResult
taskResult = new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null);
648
private async Task<
WorkUnitResult
> InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary<string, string> taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)
661
WorkUnitResult
executionResult = await ExecuteInstantiatedTask(_taskExecutionHost, taskLoggingContext, taskHost, bucket, howToExecuteTask);
737
private async Task<
WorkUnitResult
> ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
1015
WorkUnitResult
result = new WorkUnitResult(resultCode, actionCode, null);
BackEnd\Shared\TargetResult.cs (4)
27
private
WorkUnitResult
_result;
66
internal TargetResult(TaskItem[] items,
WorkUnitResult
result, BuildEventContext originalBuildEventContext = null)
142
internal
WorkUnitResult
WorkUnitResult
274
translator.Translate(ref _result,
WorkUnitResult
.FactoryForDeserialization);
BackEnd\Shared\WorkUnitResult.cs (3)
136
internal static
WorkUnitResult
FactoryForDeserialization(ITranslator translator)
151
internal
WorkUnitResult
AggregateResult(
WorkUnitResult
result)
Microsoft.Build.Engine.UnitTests (12)
BackEnd\MockTaskBuilder.cs (5)
83
public Task<
WorkUnitResult
> ExecuteTask(TargetLoggingContext targetLoggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken)
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\Scheduler_Tests.cs (2)
756
private BuildResult CacheBuildResult(BuildRequest request, string target,
WorkUnitResult
workUnitResult, ResultsCache resultsCache = null)
774
private BuildResult CreateBuildResult(BuildRequest request, string target,
WorkUnitResult
workUnitResult)
BuildResultUtilities.cs (5)
30
public static
WorkUnitResult
GetSuccessResult()
35
public static
WorkUnitResult
GetSkippedResult()
40
public static
WorkUnitResult
GetStopWithErrorResult()
45
public static
WorkUnitResult
GetStopWithErrorResult(Exception e)
50
public static
WorkUnitResult
GetContinueWithErrorResult()