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