30 references to TaskExecutionMode
Microsoft.Build (25)
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 (6)
813
private async Task<WorkUnitResult> ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext,
TaskExecutionMode
mode, Lookup lookupForInference, Lookup lookupForExecution)
869
private
TaskExecutionMode
GetTaskExecutionMode(DependencyAnalysisResult analysis)
871
TaskExecutionMode
executionMode;
875
executionMode =
TaskExecutionMode
.InferOutputsOnly;
879
executionMode =
TaskExecutionMode
.ExecuteTaskAndGatherOutputs;
886
executionMode |=
TaskExecutionMode
.ExecuteTaskAndGatherOutputs;
BackEnd\Components\RequestBuilder\TaskBuilder.cs (18)
152
public async Task<WorkUnitResult> ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance,
TaskExecutionMode
mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)
179
if ((mode &
TaskExecutionMode
.InferOutputsOnly) ==
TaskExecutionMode
.InferOutputsOnly)
181
taskResult = await ExecuteTask(
TaskExecutionMode
.InferOutputsOnly, inferLookup);
184
if ((mode &
TaskExecutionMode
.ExecuteTaskAndGatherOutputs) ==
TaskExecutionMode
.ExecuteTaskAndGatherOutputs)
186
taskResult = await ExecuteTask(
TaskExecutionMode
.ExecuteTaskAndGatherOutputs, executeLookup);
294
private async Task<WorkUnitResult> ExecuteTask(
TaskExecutionMode
mode, Lookup lookup)
369
private async Task<WorkUnitResult> ExecuteBucket(TaskHost taskHost, ItemBucket bucket,
TaskExecutionMode
howToExecuteTask, Dictionary<string, string> lookupHash)
420
if (howToExecuteTask ==
TaskExecutionMode
.ExecuteTaskAndGatherOutputs)
492
ErrorUtilities.VerifyThrow(howToExecuteTask ==
TaskExecutionMode
.InferOutputsOnly, "should be inferring");
605
private void LogSkippedTask(ItemBucket bucket,
TaskExecutionMode
howToExecuteTask)
610
if (howToExecuteTask ==
TaskExecutionMode
.ExecuteTaskAndGatherOutputs)
648
private async Task<WorkUnitResult> InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary<string, string> taskIdentityParameters, TaskHost taskHost,
TaskExecutionMode
howToExecuteTask)
737
private async Task<WorkUnitResult> ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket,
TaskExecutionMode
howToExecuteTask)
1067
private bool GatherTaskOutputs(TaskExecutionHost taskExecutionHost,
TaskExecutionMode
howToExecuteTask, ItemBucket bucket)
1141
if (howToExecuteTask ==
TaskExecutionMode
.ExecuteTaskAndGatherOutputs)
1148
ErrorUtilities.VerifyThrow(howToExecuteTask ==
TaskExecutionMode
.InferOutputsOnly, "should be inferring");
Microsoft.Build.Engine.UnitTests (5)
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)
100
if ((mode &
TaskExecutionMode
.InferOutputsOnly) ==
TaskExecutionMode
.InferOutputsOnly)
104
else if ((mode &
TaskExecutionMode
.ExecuteTaskAndGatherOutputs) ==
TaskExecutionMode
.ExecuteTaskAndGatherOutputs)