54 references to State
System.Activities (53)
System\Activities\ActivityInstance.cs (3)
200
return ActivityUtilities.IsCompletedState(this.
State
);
1138
Fx.Assert(child.
State
== ActivityInstanceState.Executing, "should only have children if they're still executing");
1295
TD.ActivityCompleted(this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, this.
State
.GetStateName());
System\Activities\Expressions\InvokeFunc.cs (17)
39
if (completedInstance.
State
== ActivityInstanceState.Closed)
87
if (completedInstance.
State
== ActivityInstanceState.Closed)
146
if (completedInstance.
State
== ActivityInstanceState.Closed)
209
if (completedInstance.
State
== ActivityInstanceState.Closed)
280
if (completedInstance.
State
== ActivityInstanceState.Closed)
355
if (completedInstance.
State
== ActivityInstanceState.Closed)
437
if (completedInstance.
State
== ActivityInstanceState.Closed)
526
if (completedInstance.
State
== ActivityInstanceState.Closed)
623
if (completedInstance.
State
== ActivityInstanceState.Closed)
727
if (completedInstance.
State
== ActivityInstanceState.Closed)
838
if (completedInstance.
State
== ActivityInstanceState.Closed)
956
if (completedInstance.
State
== ActivityInstanceState.Closed)
1082
if (completedInstance.
State
== ActivityInstanceState.Closed)
1215
if (completedInstance.
State
== ActivityInstanceState.Closed)
1355
if (completedInstance.
State
== ActivityInstanceState.Closed)
1502
if (completedInstance.
State
== ActivityInstanceState.Closed)
1656
if (completedInstance.
State
== ActivityInstanceState.Closed)
System\Activities\Runtime\ActivityExecutionWorkItem.cs (1)
32
return this.ActivityInstance.
State
== ActivityInstanceState.Executing;
System\Activities\Runtime\ActivityExecutor.cs (10)
1570
if (this.rootInstance.
State
== ActivityInstanceState.Executing)
1610
else if (this.rootInstance.
State
!= ActivityInstanceState.Closed)
1628
if (activityInstance.
State
!= ActivityInstanceState.Executing || activityInstance.IsCancellationRequested)
2289
this.executionState = this.rootInstance.
State
;
2336
Fx.Assert(ActivityUtilities.IsCompletedState(this.rootInstance.
State
), "We should only gather outputs when in a completed state.");
2340
if (this.rootInstance.
State
== ActivityInstanceState.Closed)
2424
BookmarkResumptionResult resumptionResult = this.TryResumeUserBookmark(this.mainRootCompleteBookmark, this.rootInstance.
State
, false);
2510
if (completedInstance.
State
!= ActivityInstanceState.Closed && completedInstance.Parent.HasNotExecuted)
3270
return this.ActivityInstance.
State
== ActivityInstanceState.Executing;
3629
return this.ActivityInstance.
State
== ActivityInstanceState.Executing;
System\Activities\Runtime\CompletionBookmark.cs (1)
50
if (completedInstance.
State
!= ActivityInstanceState.Closed && completedInstance.Parent.HasNotExecuted)
System\Activities\Runtime\CompletionCallbackWrapper.cs (1)
247
if (this.CompletedInstance.
State
!= ActivityInstanceState.Closed && this.ActivityInstance.IsPerformingDefaultCancelation)
System\Activities\Runtime\EmptyWithCancelationCheckWorkItem.cs (1)
56
if (this.completedInstance.
State
!= ActivityInstanceState.Closed && this.ActivityInstance.IsPerformingDefaultCancelation)
System\Activities\Statements\CancellationScope.cs (2)
91
if (completedInstance.
State
== ActivityInstanceState.Canceled ||
92
(context.IsCancellationRequested && completedInstance.
State
== ActivityInstanceState.Faulted))
System\Activities\Statements\CompensableActivity.cs (3)
393
if (completedInstance.
State
== ActivityInstanceState.Closed)
406
else if (completedInstance.
State
== ActivityInstanceState.Canceled || completedInstance.
State
== ActivityInstanceState.Faulted)
System\Activities\Statements\CompensationParticipant.cs (4)
204
if (completedInstance.
State
== ActivityInstanceState.Closed)
231
if (completedInstance.
State
== ActivityInstanceState.Closed)
288
if (completedInstance.
State
== ActivityInstanceState.Closed)
352
if (completedInstance.
State
== ActivityInstanceState.Closed)
System\Activities\Statements\Flowchart.cs (1)
306
if (completedInstance.
State
!= ActivityInstanceState.Closed)
System\Activities\Statements\ForEach.cs (2)
110
if (completedInstance.
State
== ActivityInstanceState.Canceled ||
111
(context.IsCancellationRequested && completedInstance.
State
== ActivityInstanceState.Faulted))
System\Activities\Statements\InternalState.cs (1)
701
else if (completedInstance.
State
== ActivityInstanceState.Closed)
System\Activities\Statements\Parallel.cs (1)
174
if (completedInstance.
State
!= ActivityInstanceState.Closed && context.IsCancellationRequested)
System\Activities\Statements\ParallelForEach.cs (1)
106
if (completedInstance.
State
!= ActivityInstanceState.Closed && context.IsCancellationRequested)
System\Activities\Statements\Pick.cs (2)
152
switch (completedInstance.
State
)
312
if (completedInstance.
State
== ActivityInstanceState.Closed && pickState.TriggerCompletionBookmark != null)
System\Activities\Statements\TransactionScope.cs (1)
396
if (instance.
State
== ActivityInstanceState.Closed)
System\Activities\Statements\TryCatch.cs (1)
279
if (completedInstance != null && completedInstance.
State
!= ActivityInstanceState.Closed)
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\TransactedReceiveScope.cs (1)
252
else if (completedInstance.
State
== ActivityInstanceState.Closed)