46 references to State
System.ServiceModel.Activities (46)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (46)
96
State
state;
233
return this.state ==
State
.Active;
271
return this.IsIdle && !this.hasRaisedCompleted && this.state !=
State
.Aborted;
349
workflowInstance.state =
State
.Suspended;
484
this.state !=
State
.Completed && this.state !=
State
.Unloaded && this.state !=
State
.Aborted)
682
if (this.state !=
State
.Active)
802
bool isRunnable = this.state ==
State
.Active && this.isRunnable && !this.IsIdle;
808
else if ((this.IsIdle || this.state !=
State
.Active) && NotifyNextIdleWaiter(ref ownsLock))
906
this.state =
State
.Aborted;
936
this.state =
State
.Aborted;
1030
this.state =
State
.Aborted;
1186
this.state =
State
.Active;
1223
this.state =
State
.Completed;
1644
Fx.Assert(this.state ==
State
.Active, "WorkflowServiceInstance.State should be State.Active at this point.");
1727
this.state =
State
.Unloaded;
1777
if (this.state ==
State
.Aborted)
1800
if (this.state ==
State
.Unloaded)
1808
if (this.state ==
State
.Suspended)
1838
if (this.state ==
State
.Active)
1855
if (this.hasRaisedCompleted || (this.state ==
State
.Active && this.isRunnable) || this.isInTransaction)
1892
else if (this.state ==
State
.Unloaded || this.state ==
State
.Aborted || this.state ==
State
.Suspended)
1904
if (this.state ==
State
.Aborted)
1940
if (this.state ==
State
.Unloaded)
2263
if ((this.state ==
State
.Suspended && this.isTransactedCancelled) || this.state ==
State
.Active)
2273
if ((this.state ==
State
.Suspended && this.isTransactedCancelled) || ValidateStateForRun(null, null))
2276
this.state =
State
.Active;
2293
else if (this.state ==
State
.Unloaded && this.completionState == ActivityInstanceState.Faulted)
2351
Fx.AssertAndThrow(this.state !=
State
.Unloaded, "Cannot be unloaded");
2354
if (this.state ==
State
.Unloaded)
2361
if (this.state ==
State
.Completed || this.state ==
State
.Aborted)
2367
if (this.state ==
State
.Suspended &&
3586
if (this.instance.state !=
State
.Suspended && !this.instance.IsIdle)
4198
if (this.instance.state !=
State
.Aborted && this.instance.Controller.HasPendingTrackingRecords)
4303
this.Instance.state =
State
.Active;
4555
this.Instance.state =
State
.Active;
4698
thisPtr.parent.Instance.state =
State
.Suspended;
4759
this.Instance.state =
State
.Active;
4904
if (this.instance.state ==
State
.Active && !this.instance.isRunnable)
4912
if (this.instance.state ==
State
.Active && this.instance.Controller.State == WorkflowInstanceState.Runnable)
5796
if (this.instance.state ==
State
.Suspended)