1 write to ActivityState
System.Workflow.Activities (1)
60 references to ActivityState
System.Workflow.Activities (60)
Task.cs (60)
91if (this.ActivityState != null && this.ActivityState.IsChildActive)
153if (this.ActivityState != null)
154return !this.ActivityState.IsChildActive;
166if (this.ActivityState != null)
169return this.ActivityState.CurrentIndex;
171return this.ActivityState.AbsoluteCount - 1;
181if (this.ActivityState != null)
183if (index < 0 || index >= this.ActivityState.AbsoluteCount)
186ChildExecutionStateInfo childStateInfo = this.ActivityState[index, false];
263if (this.ActivityState == null)
267this.ActivityState.Add(childStateInfo);
269int indexOfAdd = this.ActivityState.AbsoluteCount - 1;
279if (this.ActivityState == null)
284for (int i = 0; i < this.ActivityState.Count; ++i)
286ChildExecutionStateInfo childStateInfo = this.ActivityState[i];
307if (this.ActivityState == null)
310if (index < 0 || index > this.ActivityState.AbsoluteCount)
314this.ActivityState.Insert(index, childStateInfo, false);
333if (this.ActivityState == null)
336if (index < 0 || index >= this.ActivityState.AbsoluteCount)
339ChildExecutionStateInfo childStateInfo = this.ActivityState[index, false];
342this.ActivityState.Remove(childStateInfo);
355if (this.ActivityState == null)
358while (this.ActivityState.AbsoluteCount != 0)
385else if (this.ActivityState.Count != 0)
391this.ActivityState.CompletionConditionTrueAlready = true;
411if (!this.ActivityState.IsChildActive)
416if (this.ActivityState.AttemptedCloseWhileFaulting)
419this.ActivityState.AttemptedCloseWhileFaulting = true;
500Debug.Assert(this.ActivityState.Contains(e.ChildStateInfo));
514this.ActivityState.Remove(childStateInfo);
555int runIndex = this.ActivityState.FindIndexOfChildStateInfo(subscriber.RunIdentifier);
564ChildExecutionStateInfo childStateInfo = this.ActivityState[runIndex];
582if (!this.ActivityState.CompletionConditionTrueAlready)
583this.ActivityState.CompletionConditionTrueAlready = (this.UntilCondition != null && this.UntilCondition.Evaluate(this, executionContext));
595this.ActivityState.Remove(childStateInfo);
601if (!this.ActivityState.IsChildActive) //Everything is passive now.
603if (this.ExecutionStatus == ActivityExecutionStatus.Canceling || this.ExecutionStatus == ActivityExecutionStatus.Faulting || this.ActivityState.CompletionConditionTrueAlready)
616if (this.ActivityState.CompletionConditionTrueAlready)
628if (runIndex < this.ActivityState.Count - 1)
630ExecuteTemplate(executionContext, this.ActivityState[runIndex + 1]);
642if (!this.ActivityState.IsChildActive && (this.UntilCondition == null || (this.UntilCondition.Evaluate(this, executionContext))))
658if (this.ActivityState == null)
661ReplicatorStateInfo stateInfo = this.ActivityState;
732int totalListSize = this.ActivityState.AbsoluteCount;
734if ((index == 0 && totalListSize == 1) || ((index == totalListSize - 1) && this.ActivityState[totalListSize - 2, false].Status == ChildRunStatus.Completed))
1079if (replicatorActivity.ActivityState == null)
1082return replicatorActivity.ActivityState[index, false].InstanceData;
1092if (replicatorActivity.ActivityState == null)
1095replicatorActivity.ActivityState[index, false].InstanceData = value;
1111if (replicatorActivity.ActivityState == null)
1123if (array.Length - index < replicatorActivity.ActivityState.AbsoluteCount)
1126for (int i = 0; i < replicatorActivity.ActivityState.AbsoluteCount; ++i)
1128array.SetValue(replicatorActivity.ActivityState[i, false].InstanceData, i + index);
1143if (replicatorActivity.ActivityState == null)
1146return replicatorActivity.ActivityState.AbsoluteCount;
1181if (replicatorActivity.ActivityState == null)
1184for (int i = 0; i < replicatorActivity.ActivityState.AbsoluteCount; ++i)
1185yield return replicatorActivity.ActivityState[i, false].InstanceData;