299 references to Parent
System.Workflow.Activities (122)
Common\CompModHelpers.cs (22)
131
if (activity.
Parent
!= null)
133
ArrayList childActivities = (ArrayList)commonParentActivities[activity.
Parent
];
137
commonParentActivities.Add(activity.
Parent
, childActivities);
159
Activity parentActivity = activity.
Parent
;
170
parentActivity = parentActivity.
Parent
;
285
while (activity.
Parent
!= null)
286
activity = activity.
Parent
;
877
CompositeActivity parent = activity.
Parent
;
881
if (parent.
Parent
== null)
888
parent = parent.
Parent
;
898
CompositeActivity parent = activity.
Parent
;
902
if (parent.
Parent
== null)
909
parent = parent.
Parent
;
1153
activity = (string.Equals(parent, "Parent", StringComparison.OrdinalIgnoreCase)) ? activity.
Parent
: null;
1168
Activity parentContextActivity = context.
Parent
;
1179
parentContextActivity = parentContextActivity.
Parent
;
1219
if (compositeParentActivity != null && parentActivity.
Parent
!= null && IsCustomActivity(compositeParentActivity))
1222
parentActivity = parentActivity.
Parent
;
1228
parentActivity = parentActivity.
Parent
;
1248
while (contextGuid == Guid.Empty && contextActivity.
Parent
!= null)
1250
contextActivity = contextActivity.
Parent
;
1427
if (currentActivity == null && (parsingContext is CompositeActivity) && parsingContext.
Parent
!= null && Helpers.IsCustomActivity(parsingContext as CompositeActivity))
Common\ValidationHelpers.cs (6)
124
if (activity is CompositeActivity && ((activity.
Parent
== null) || !Helpers.IsCustomActivity(activity as CompositeActivity)))
141
if (request.
Parent
== null)
145
Activity responseParent = response is CompositeActivity ? (CompositeActivity)response : response.
Parent
;
149
responseParent = responseParent.
Parent
;
153
CompositeActivity requestParent = request is CompositeActivity ? (CompositeActivity)request : request.
Parent
;
157
requestParent = requestParent.
Parent
;
ConditionalBranch.cs (1)
71
IfElseActivity ifElse = ifElseBranch.
Parent
as IfElseActivity;
ConstrainedGroup.cs (3)
174
if (contextActivity != null && Helpers.IsChildActivity(activity.
Parent
, contextActivity))
227
Debug.Assert(currentActivity == addedActivity.
Parent
, "Attempting to add wrong activity to CAG");
522
Debug.Assert(cag == args1.Activity.
Parent
, "Received event for non-child of CAG");
CorrelationValidator.cs (5)
116
if (activity.
Parent
== null)
139
CompositeActivity parent = activity.
Parent
;
152
parent = parent.
Parent
;
321
parent = parent.
Parent
;
335
currentParent = currentParent.
Parent
;
Delay.cs (4)
321
while (root.
Parent
!= null)
322
root = root.
Parent
;
355
while (root.
Parent
!= null)
356
root = root.
Parent
;
Designers\CAGDesigner.cs (3)
90
if (activity.
Parent
is ConditionedActivityGroup)
100
if (activity.
Parent
is ConditionedActivityGroup)
107
return ((extendee != this) && (extendee is Activity) && (((Activity)extendee).
Parent
is ConditionedActivityGroup));
Designers\SetStateDesigner.cs (1)
193
return ValidateParent(parentActivity.
Parent
);
Designers\StateDesigner.cs (6)
644
state.
Parent
!= null)
1178
connector.SourceStateName = sourceDesignerLayoutConnectionPoint.EventHandler.
Parent
.QualifiedName;
1201
CompositeActivityDesigner setStateParentDesigner = StateDesigner.GetDesigner(setStateActivity.
Parent
) as CompositeActivityDesigner;
1248
CompositeActivityDesigner previousSetStateParentDesigner = (CompositeActivityDesigner)StateDesigner.GetDesigner(setState.
Parent
);
1260
stateDesignerConnector.SourceStateName = source.EventHandler.
Parent
.QualifiedName;
1757
StateDesigner sourceStateDesigner = (StateDesigner)GetDesigner(eventHandler.
Parent
);
Designers\StateDesigner.TransitionInfo.cs (1)
64
StateActivity sourceState = _eventHandler.
Parent
as StateActivity;
EventDriven.cs (3)
66
if (!(eventDriven.
Parent
is ListenActivity) &&
67
!(eventDriven.
Parent
is EventHandlersActivity) &&
68
!(eventDriven.
Parent
is StateActivity)
EventHandlers.cs (4)
85
if (this.
Parent
== null)
475
if (eventHandlers.
Parent
== null)
482
if (!(eventHandlers.
Parent
is EventHandlingScopeActivity))
483
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_EventHandlersDeclParentNotScope, eventHandlers.
Parent
.QualifiedName), ErrorNumbers.Error_EventHandlersDeclParentNotScope));
EventSinkActivity.cs (4)
234
CompositeActivity parent = this.
Parent
;
248
parent = parent.
Parent
;
262
CompositeActivity parent = this.
Parent
;
270
parent = parent.
Parent
;
InvokeSchedule.cs (2)
262
Activity parentScope = invokeWorkflow.
Parent
;
270
parentScope = parentScope.
Parent
;
InvokeWebService.cs (2)
198
if (parent.
Parent
== null)
201
parent = parent.
Parent
;
LocalService\CorrelationTokenTypeConvertor.cs (3)
110
if (currentActivity.
Parent
!= null)
112
foreach (Activity siblingActivity in currentActivity.
Parent
.Activities)
131
activityStack.Push(currentActivity.
Parent
);
Policy.cs (1)
55
if (this.
Parent
== null)
Rules\RuleDefinitions.cs (1)
59
if (rootActivity.
Parent
== null)
SetState.cs (8)
152
if (activity.
Parent
== null || activity.
Parent
== activity)
158
if (SetStateValidator.IsValidContainer(activity.
Parent
))
160
ValidateParentState(containment, activity.
Parent
);
164
ValidateContainment(containment, activity.
Parent
);
170
if (activity.
Parent
== null)
173
StateActivity state = activity.
Parent
as StateActivity;
180
ValidateParentState(containment, activity.
Parent
);
State.cs (1)
285
if (existingContext.Activity.
Parent
== this)
StateFinalizationActivity.cs (1)
52
StateActivity state = stateFinalization.
Parent
as StateActivity;
StateInitialization.cs (1)
52
StateActivity state = stateInitialization.
Parent
as StateActivity;
StateMachineExecutionState.cs (1)
229
currentState = currentState.
Parent
as StateActivity;
StateMachineHelpers.cs (11)
34
StateActivity parent = state.
Parent
as StateActivity;
56
return (context.Activity.
Parent
== null);
67
Debug.Assert(activity.
Parent
!= activity);
73
if (activity.
Parent
== null)
76
return FindEnclosingState(activity.
Parent
);
87
Debug.Assert(state.
Parent
!= state);
89
if (state.
Parent
== null)
94
if (!(state.
Parent
is StateActivity))
97
return GetRootState((StateActivity)state.
Parent
);
251
Activity activity = ((Activity)eventActivity).
Parent
;
258
activity = activity.
Parent
;
StateMachineSubscriptionManager.cs (3)
142
state = state.
Parent
as StateActivity;
152
StateActivity parentState = state.
Parent
as StateActivity;
157
parentState = parentState.
Parent
as StateActivity;
StateValidator.cs (3)
41
if (state.
Parent
!= null)
53
if (!(state.
Parent
is StateActivity))
61
if (state.
Parent
== null && !StateMachineHelpers.IsStateMachine(state))
WebServiceFault.cs (1)
126
if (this.
Parent
== null)
WebServiceReceive.cs (1)
211
if (this.
Parent
== null)
WebServiceResponse.cs (19)
117
if (this.
Parent
== null)
137
Activity parent = this.
Parent
;
145
parent = this.
Parent
;
504
if (currentActivity.
Parent
!= null)
506
foreach (Activity siblingActivity in currentActivity.
Parent
.Activities)
509
if (siblingActivity == currentActivity && ((currentActivity.
Parent
is ParallelActivity && !Helpers.IsFrameworkActivity(currentActivity)) || (currentActivity.
Parent
is StateActivity && !Helpers.IsFrameworkActivity(currentActivity))))
513
if (currentActivity.
Parent
is IfElseActivity && !Helpers.IsFrameworkActivity(currentActivity))
517
if (currentActivity.
Parent
is ListenActivity && !Helpers.IsFrameworkActivity(currentActivity))
525
StateActivity currentState = currentActivity.
Parent
as StateActivity;
554
if (!crossOverLoop && IsLoopActivity(currentActivity.
Parent
))
557
activityStack.Push(currentActivity.
Parent
);
581
while (currentActivity.
Parent
!= null && currentActivity.
Parent
.QualifiedName != leastCommonParent)
586
currentActivity = currentActivity.
Parent
;
596
foreach (String path in GetActivityPath(activity.
Parent
))
632
if (currentActivity.
Parent
!= null)
636
foreach (Activity siblingActivity in currentActivity.
Parent
.Activities)
661
activityStack.Push(currentActivity.
Parent
);
System.Workflow.ComponentModel (127)
AuthoringOM\Activity.cs (17)
1179
if (returnActivity.
Parent
== null)
1390
if (this.
Parent
== null)
1609
this.WorkflowCoreRuntime.RaiseException(exception, this.
Parent
, string.Empty);
1620
this.WorkflowCoreRuntime.RaiseException(exception, this.
Parent
, string.Empty);
1629
if (parent.SupportsSynchronization || parent.
Parent
== null)
1650
if (parent.SupportsSynchronization || parent.
Parent
== null)
1686
this.WorkflowCoreRuntime.RaiseException(exception, this.
Parent
, string.Empty);
2059
if (this.
Parent
!= null)
2350
parent = parent.
Parent
;
2365
if (activity.
Parent
!= null)
2366
throw new InvalidOperationException(SR.GetString(SR.Error_ActivityHasParent, activity.QualifiedName, activity.
Parent
.QualifiedName));
2411
if (rootActivity.
Parent
== null || !string.IsNullOrEmpty(className))
2440
while (compositeActivity.
Parent
!= null)
2444
compositeActivity = compositeActivity.
Parent
;
2454
if (parent && compositeActivity.
Parent
== null)
2460
if (compositeActivity.
Parent
!= null)
2461
return CannotModifyChildren(compositeActivity.
Parent
, parent);
AuthoringOM\ActivityExecutionContext.cs (12)
309
if (this.currentActivity.
Parent
== null)
317
this.currentActivity.WorkflowCoreRuntime.RaiseException(e, this.currentActivity.
Parent
, string.Empty);
417
Activity parent = activity.
Parent
;
420
if (parent.SupportsSynchronization || parent.
Parent
== null)
454
parent = parent.
Parent
;
476
Activity parent = Activity.
Parent
;
479
if (parent.SupportsSynchronization || parent.
Parent
== null)
536
parent = parent.
Parent
;
641
if (activity.Enabled && activity.
Parent
== this.currentActivity.WorkflowCoreRuntime.CurrentActivity && (allowContextVariance || activity.Equals(this.Activity.GetActivityByName(activity.QualifiedName, true))))
655
while (parentActivity != null && parentActivity.Enabled && parentActivity.
Parent
!= this.currentActivity.ContextActivity)
656
parentActivity = parentActivity.
Parent
;
681
activity = activity.
Parent
;
AuthoringOM\Behaviors\CancellationHandler.cs (1)
31
if (this.
Parent
== null)
AuthoringOM\Behaviors\Compensate.cs (7)
53
if (this.
Parent
== null)
101
commonParentActivity = commonParentActivity.
Parent
;
174
CompositeActivity parent = compensate.
Parent
;
179
parent = parent.
Parent
;
195
parent = parent.
Parent
;
214
CompositeActivity parent = compensate.
Parent
;
220
parent = parent.
Parent
;
AuthoringOM\Behaviors\CompensateDesigner.cs (1)
30
parentActivity = parentActivity.
Parent
;
AuthoringOM\Behaviors\Compensation.cs (2)
32
if (this.
Parent
== null)
75
if (!(compensation.
Parent
is ICompensatableActivity))
AuthoringOM\Behaviors\ExceptionHandler.cs (2)
74
if (this.
Parent
== null)
168
if (!(exceptionHandler.
Parent
is FaultHandlersActivity))
AuthoringOM\Behaviors\ExceptionHandlers.cs (4)
41
if (this.
Parent
== null)
52
Debug.Assert(this.
Parent
.GetValue(ActivityExecutionContext.CurrentExceptionProperty) != null, "No Exception contained by parent");
54
Exception excep = this.
Parent
.GetValue(ActivityExecutionContext.CurrentExceptionProperty) as Exception;
65
this.
Parent
.RemoveProperty(ActivityExecutionContext.CurrentExceptionProperty);
AuthoringOM\Compiler\Validation\ActivityValidator.cs (1)
28
if (activity.
Parent
== null)
AuthoringOM\Compiler\Validation\BindValidator.cs (1)
914
else if (value is ActivityBind && refActivity.
Parent
!= null)
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (1)
118
bool checkNotSet = (activity.
Parent
!= null) || ((activity is CompositeActivity) && (((CompositeActivity)activity).EnabledActivities.Count != 0));
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (2)
41
Activity parent = activity.
Parent
;
49
parent = parent.
Parent
;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (5)
220
if (activity.
Parent
== null)
592
while (activity != null && activity.
Parent
!= null)
593
activity = activity.
Parent
;
629
while (activity != null && activity.
Parent
!= null)
630
activity = activity.
Parent
;
AuthoringOM\Design\ActivityDesigner.cs (6)
122
else if (Activity != null && Activity.
Parent
!= null)
123
parentDesigner = ActivityDesigner.GetDesigner(Activity.
Parent
) as CompositeActivityDesigner;
358
if (this.Activity.
Parent
!= null)
762
if (Activity.
Parent
== null)
893
CompositeActivity parentActivity = activity.
Parent
;
897
parentActivity = parentActivity.
Parent
;
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
26
if (activityDesigner.Activity != null && activityDesigner.Activity.
Parent
== null && writer != null)
AuthoringOM\Design\CommandSet.cs (2)
453
CompositeActivity parentActivity = selectedActivity.
Parent
;
921
CompositeActivity parentActivity = selectedActivity.
Parent
;
AuthoringOM\Design\CompositeActivityDesigner.cs (6)
832
if (activity.
Parent
== null)
924
Debug.Assert(activity.
Parent
!= null);
925
CompositeActivity parentActivity = activity.
Parent
;
927
activity.
Parent
.Activities.Remove(activity);
1518
if (activity == null || activity.
Parent
== null)
1521
CompositeActivity compositeActivity = activity.
Parent
as CompositeActivity;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
415
if (designerHost != null && loader != null && activity.
Parent
== null)
AuthoringOM\Design\FreeFormDesigner.cs (1)
874
if (activity.Site == null || activity.
Parent
!= Activity)
AuthoringOM\Design\IdentifierCreationService.cs (2)
206
CompositeActivity parent = activity.
Parent
;
213
parent = parent.
Parent
;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
791
parentActivity = parentActivity.
Parent
;
AuthoringOM\Design\XomlDesignerLoader.cs (1)
171
if (activity.
Parent
== null && designerHost.RootComponent == null)
AuthoringOM\Fault.cs (1)
48
if (this.
Parent
== null)
AuthoringOM\Filters\CompensationHandlingFilter.cs (3)
126
if (targetActivity.
Parent
== null)
367
while (immediateChild.
Parent
!= targetParent)
368
immediateChild = immediateChild.
Parent
;
AuthoringOM\Helpers.cs (1)
21
Debug.Assert(activity.
Parent
!= null, "If this is a built-in activity, its parent should never be null.");
AuthoringOM\ScheduleChanges.cs (5)
46
if (!(rootActivity is CompositeActivity) || rootActivity.
Parent
!= null)
154
if (activity.
Parent
!= null)
385
if (activity.
Parent
!= null)
386
return IsActivityExecutable(activity.
Parent
);
747
CompositeActivity addedActivityOwner = this.addedActivity.
Parent
;
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (1)
105
if (a.
Parent
== null)
AuthoringOM\Serializer\ActivitySurrogate.cs (6)
70
if (obj is Activity && ((Activity)obj).
Parent
== null)
129
if (activity.
Parent
== null)
135
if (!activity.
Parent
.Activities.Contains(activity))
138
if (activity.
Parent
.ContextActivity != null)
139
activeContextActivities = (IList<Activity>)activity.
Parent
.ContextActivity.GetValue(Activity.ActiveExecutionContextsProperty);
147
activity = activity.
Parent
;
AuthoringOM\Serializer\CompositeActivityMarkupSerializer.cs (1)
21
if (compositeActivity.
Parent
== null && writer != null)
AuthoringOM\Suspend.cs (3)
47
if (this.
Parent
== null)
90
CompositeActivity parent = suspend.
Parent
;
98
parent = parent.
Parent
;
AuthoringOM\Terminate.cs (1)
43
if (this.
Parent
== null)
Shared\CompModHelpers.cs (22)
129
if (activity.
Parent
!= null)
131
ArrayList childActivities = (ArrayList)commonParentActivities[activity.
Parent
];
135
commonParentActivities.Add(activity.
Parent
, childActivities);
157
Activity parentActivity = activity.
Parent
;
168
parentActivity = parentActivity.
Parent
;
283
while (activity.
Parent
!= null)
284
activity = activity.
Parent
;
875
CompositeActivity parent = activity.
Parent
;
879
if (parent.
Parent
== null)
886
parent = parent.
Parent
;
896
CompositeActivity parent = activity.
Parent
;
900
if (parent.
Parent
== null)
907
parent = parent.
Parent
;
1151
activity = (string.Equals(parent, "Parent", StringComparison.OrdinalIgnoreCase)) ? activity.
Parent
: null;
1166
Activity parentContextActivity = context.
Parent
;
1177
parentContextActivity = parentContextActivity.
Parent
;
1217
if (compositeParentActivity != null && parentActivity.
Parent
!= null && IsCustomActivity(compositeParentActivity))
1220
parentActivity = parentActivity.
Parent
;
1226
parentActivity = parentActivity.
Parent
;
1246
while (contextGuid == Guid.Empty && contextActivity.
Parent
!= null)
1248
contextActivity = contextActivity.
Parent
;
1425
if (currentActivity == null && (parsingContext is CompositeActivity) && parsingContext.
Parent
!= null && Helpers.IsCustomActivity(parsingContext as CompositeActivity))
Shared\ValidationHelpers.cs (6)
123
if (activity is CompositeActivity && ((activity.
Parent
== null) || !Helpers.IsCustomActivity(activity as CompositeActivity)))
140
if (request.
Parent
== null)
144
Activity responseParent = response is CompositeActivity ? (CompositeActivity)response : response.
Parent
;
148
responseParent = responseParent.
Parent
;
152
CompositeActivity requestParent = request is CompositeActivity ? (CompositeActivity)request : request.
Parent
;
156
requestParent = requestParent.
Parent
;
System.Workflow.Runtime (34)
AmbientEnvironment.cs (1)
163
currentActivity = currentActivity.
Parent
;
ContextActivityUtils.cs (3)
35
contextActivity = contextActivity.
Parent
;
52
while (rootActivity != null && rootActivity.
Parent
!= null)
53
rootActivity = rootActivity.
Parent
;
CorrelationToken.cs (1)
202
activityStack.Push(currentActivity.
Parent
);
DebugEngine\DebugController.cs (1)
1033
activity = activity.
Parent
;
System\Activities\Statements\InteropEnvironment.cs (4)
115
activity.
Parent
== null ? Guid.Empty : activity.
Parent
.ContextGuid,
133
activity.
Parent
== null ? Guid.Empty : activity.
Parent
.ContextGuid,
System\Activities\Statements\InteropExecutor.cs (2)
303
activity = activity.
Parent
;
721
contextActivity = contextActivity.
Parent
;
Tracking.cs (2)
868
if (null != activity.
Parent
)
869
parentContextGuid = _factory.GetContext(activity.
Parent
);
Tracking\SqlTrackingService.cs (10)
2332
if (null != removed.
Parent
)
2333
removedActivity.ParentQualifiedName = removed.
Parent
.QualifiedName;
2354
if (null != removed.
Parent
)
2355
removedActivity.ParentQualifiedName = removed.
Parent
.QualifiedName;
2378
if (null != added.
Parent
)
2379
addedActivity.ParentQualifiedName = added.
Parent
.QualifiedName;
2403
if (null != added.
Parent
)
2404
addedActivity.ParentQualifiedName = added.
Parent
.QualifiedName;
2587
if (null != activity.
Parent
)
2588
writer.WriteElementString("ParentQualifiedName", activity.
Parent
.QualifiedName);
WorkflowExecutor.cs (10)
186
if (null == invokerExec.CurrentActivity.
Parent
)
189
trackingCallingState.CallerParentContextGuid = ((ActivityExecutionContextInfo)ContextActivityUtils.ContextActivity(invokerExec.CurrentActivity.
Parent
).GetValue(Activity.ActivityExecutionContextInfoProperty)).ContextGuid;
2076
activity = activity.
Parent
;
2577
if (null != currentActivity.
Parent
)
2578
parentContextGuid = ((ActivityExecutionContextInfo)ContextActivityUtils.ContextActivity(currentActivity.
Parent
).GetValue(Activity.ActivityExecutionContextInfoProperty)).ContextGuid;
3032
bool unlock = (activity.
Parent
== null) ? true : false;
3047
if (contextActivity.
Parent
!= outerActivity.
Parent
)
3048
contextActivity.parent = outerActivity.
Parent
;
3188
currentActivity = currentActivity.
Parent
;
System.WorkflowServices (16)
System\Workflow\Activities\ChannelToken.cs (2)
196
contextActivity = contextActivity.
Parent
;
284
activityStack.Push(currentActivity.
Parent
);
System\Workflow\Activities\ChannelTokenTypeConverter.cs (3)
146
if (currentActivity.
Parent
!= null)
148
foreach (Activity siblingActivity in currentActivity.
Parent
.Activities)
169
activityStack.Push(currentActivity.
Parent
);
System\Workflow\Activities\ContextToken.cs (3)
174
contextActivity = contextActivity.
Parent
;
285
activityStack.Push(currentActivity.
Parent
);
328
contextActivity = contextActivity.
Parent
;
System\Workflow\Activities\ContextTokenTypeConverter.cs (3)
146
if (currentActivity.
Parent
!= null)
148
foreach (Activity siblingActivity in currentActivity.
Parent
.Activities)
169
activityStack.Push(currentActivity.
Parent
);
System\Workflow\Activities\ReceiveActivityValidator.cs (2)
81
while (rootActivity.
Parent
!= null)
83
rootActivity = rootActivity.
Parent
;
System\Workflow\Activities\ValidationHelper.cs (2)
457
parent = parent.
Parent
;
559
parent = parent.
Parent
;
System\Workflow\Activities\WorkflowServiceAttributesPropertyProviderExtender.cs (1)
22
return ((extendee is Activity) && (((Activity) extendee).
Parent
== null));