34 references to Substate
System.Activities (34)
System\Activities\ActivityInstance.cs (29)
44
Substate
substate;
59
this.substate =
Substate
.Created;
86
internal
Substate
SubState
159
internal
Substate
SerializedSubstate
265
return this.substate ==
Substate
.ResolvingArguments;
273
return (this.substate &
Substate
.PreExecuting) != 0;
610
Fx.Assert(this.substate ==
Substate
.Executing || this.substate ==
Substate
.Canceling, "called from an unexpected state");
611
this.substate =
Substate
.Canceling;
616
this.substate =
Substate
.Executing;
877
this.substate =
Substate
.ResolvingArguments;
885
Fx.Assert(this.substate ==
Substate
.Executing, "Dynamically added arguments are to be resolved only in Substate.Executing.");
954
Fx.Assert(this.substate ==
Substate
.ResolvingArguments, "Invalid sub-state machine");
1002
this.substate =
Substate
.ResolvingVariables;
1011
Fx.Assert(this.substate ==
Substate
.Executing, "Dynamically added variable default expressions are to be resolved only in Substate.Executing.");
1036
Fx.Assert(this.substate ==
Substate
.ResolvingVariables, "invalid sub-state machine");
1038
this.substate =
Substate
.ResolvingVariables;
1152
if (this.substate ==
Substate
.ResolvingArguments)
1157
this.substate =
Substate
.ResolvingVariables;
1160
else if (this.substate ==
Substate
.ResolvingVariables)
1178
if (this.substate ==
Substate
.Canceling)
1215
Fx.Assert(this.substate !=
Substate
.Initialized, "SetInitializedSubstate called when substate is already Initialized.");
1216
this.substate =
Substate
.Initialized;
1351
Fx.Assert(this.substate !=
Substate
.ResolvingVariables, "We must have already performed the same validations in advance.");
1352
Fx.Assert(this.substate !=
Substate
.ResolvingArguments, "We must have already performed the same validations in advance.");
1377
Created = 1 |
Substate
.PreExecuting,
1378
ResolvingArguments = 2 |
Substate
.PreExecuting,
1380
ResolvingVariables = 3 |
Substate
.PreExecuting,
1382
Initialized = 4 |
Substate
.PreExecuting,
System\Activities\Runtime\ActivityExecutor.cs (1)
2921
Fx.Assert(!activity.UseOldFastPath || parent.SubState == ActivityInstance.
Substate
.Executing,
System\Activities\Runtime\ActivityInstanceMap.cs (4)
191
if (activityInstance.SubState == ActivityInstance.
Substate
.ResolvingVariables)
196
else if (activityInstance.SubState == ActivityInstance.
Substate
.ResolvingArguments)
469
if (activity != null && instance.SubState == ActivityInstance.
Substate
.Executing)
526
if (instance == null || instance.SubState != ActivityInstance.
Substate
.Executing)