34 references to TaskCompleteType
Microsoft.Build (18)
Instance\TaskFactories\TaskHostTask.cs (4)
450
_taskExecutionSucceeded = taskHostTaskComplete.TaskResult ==
TaskCompleteType
.Success ? true : false;
459
if ((taskHostTaskComplete.TaskResult ==
TaskCompleteType
.CrashedDuringExecution) ||
460
(taskHostTaskComplete.TaskResult ==
TaskCompleteType
.CrashedAfterExecution))
474
if (taskHostTaskComplete.TaskResult ==
TaskCompleteType
.CrashedDuringInitialization)
OutOfProcTaskHostTaskResult.cs (12)
21
internal OutOfProcTaskHostTaskResult(
TaskCompleteType
result)
30
internal OutOfProcTaskHostTaskResult(
TaskCompleteType
result, IDictionary<string, Object> finalParams)
39
internal OutOfProcTaskHostTaskResult(
TaskCompleteType
result, Exception taskException)
48
internal OutOfProcTaskHostTaskResult(
TaskCompleteType
result, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs)
57
internal OutOfProcTaskHostTaskResult(
TaskCompleteType
result, IDictionary<string, Object> finalParams, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs)
61
if (result ==
TaskCompleteType
.CrashedDuringInitialization ||
62
result ==
TaskCompleteType
.CrashedDuringExecution ||
63
result ==
TaskCompleteType
.CrashedAfterExecution)
71
result ==
TaskCompleteType
.CrashedDuringInitialization ||
72
result ==
TaskCompleteType
.CrashedDuringExecution ||
73
result ==
TaskCompleteType
.CrashedAfterExecution,
92
public
TaskCompleteType
Result
TaskHostTaskComplete.cs (2)
62
private
TaskCompleteType
_taskResult;
148
public
TaskCompleteType
TaskResult
Microsoft.Build.Engine.UnitTests (16)
BackEnd\TaskHostTaskComplete_Tests.cs (16)
48
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success),
54
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Failure),
60
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.CrashedDuringInitialization,
67
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.CrashedDuringExecution, new ArgumentNullException()),
75
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success, parameters),
87
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success, parameters2),
100
AssertInvalidConstructorThrows(typeof(InternalErrorException),
TaskCompleteType
.CrashedDuringExecution, null, "ExceptionlessErrorMessage", null, null, null);
101
AssertInvalidConstructorThrows(typeof(InternalErrorException),
TaskCompleteType
.CrashedDuringInitialization, null, null, null, null, null);
102
AssertInvalidConstructorThrows(typeof(InternalErrorException),
TaskCompleteType
.Success, new ArgumentNullException(), "ExceptionlessErrorMessage", null, null, null);
103
AssertInvalidConstructorThrows(typeof(InternalErrorException),
TaskCompleteType
.CrashedDuringExecution, null, null, new string[1] { "Foo" }, null, null);
113
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success),
136
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success, new Dictionary<string, object>()),
162
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success, parameters),
189
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success, parameters),
215
new OutOfProcTaskHostTaskResult(
TaskCompleteType
.Success, parameters),
239
private void AssertInvalidConstructorThrows(Type expectedExceptionType,
TaskCompleteType
taskResult, Exception taskException, string taskExceptionMessage, string[] taskExceptionMessageArgs, IDictionary<string, object> taskOutputParameters, IDictionary<string, string> buildProcessEnvironment)