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