51 references to ContextActivity
System.Workflow.ComponentModel (51)
AuthoringOM\Activity.cs (15)
436
activityExecutorDelegate = new ActivityExecutorDelegateInfo<T>(handler, this.
ContextActivity
);
438
activityExecutorDelegate.InvokeDelegate(this.WorkflowCoreRuntime.CurrentActivity.
ContextActivity
, e, false);
458
activityExecutorDelegate = new ActivityExecutorDelegateInfo<T>(eventListener, this.
ContextActivity
);
460
activityExecutorDelegate.InvokeDelegate(this.WorkflowCoreRuntime.CurrentActivity.
ContextActivity
, e, false);
726
handlers.Add(new ActivityExecutorDelegateInfo<ActivityExecutionStatusChangedEventArgs>(true, delegateValue, this.
ContextActivity
?? this.RootActivity));
735
handlers.Remove(new ActivityExecutorDelegateInfo<ActivityExecutionStatusChangedEventArgs>(true, delegateValue, this.
ContextActivity
));
776
handlers.Add(new ActivityExecutorDelegateInfo<ActivityExecutionStatusChangedEventArgs>(true, activityStatusChangeListener, this.
ContextActivity
));
800
handlers.Remove(new ActivityExecutorDelegateInfo<ActivityExecutionStatusChangedEventArgs>(true, activityStatusChangeListener, this.
ContextActivity
));
836
return (this.
ContextActivity
!= this.RootActivity);
1315
return ((ActivityExecutionContextInfo)this.
ContextActivity
.GetValue(Activity.ActivityExecutionContextInfoProperty)).ContextId;
1322
return ((ActivityExecutionContextInfo)this.
ContextActivity
.GetValue(Activity.ActivityExecutionContextInfoProperty)).ContextGuid;
1339
Activity contextActivity = this.
ContextActivity
;
1494
delegateInfo.InvokeDelegate(this.
ContextActivity
, statusChangeEventArgs, delegateInfo.ActivityQualifiedName == null, transacted);
1705
Activity contextActivity = this.
ContextActivity
;
1965
Activity contextActivity = this.
ContextActivity
;
AuthoringOM\ActivityExecutionContext.cs (5)
172
return this.currentActivity.
ContextActivity
.ContextGuid;
183
return this.currentActivity.
ContextActivity
.ContextId;
406
this.Activity.SetValue(LockAcquiredCallbackProperty, new ActivityExecutorDelegateInfo<EventArgs>(true, locksAcquiredCallback, this.Activity.
ContextActivity
));
545
waitingActivityCallback.InvokeDelegate(this.Activity.
ContextActivity
, EventArgs.Empty, false, transactional);
655
while (parentActivity != null && parentActivity.Enabled && parentActivity.Parent != this.currentActivity.
ContextActivity
)
AuthoringOM\ActivityExecutionContextCollection.cs (25)
32
IList<Activity> activeContexts = (IList<Activity>)this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.ActiveExecutionContextsProperty);
103
IList<Activity> activeContexts = (IList<Activity>)this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.ActiveExecutionContextsProperty);
107
this.ownerContext.Activity.
ContextActivity
.SetValue(Activity.ActiveExecutionContextsProperty, activeContexts);
160
if (childContext.Activity.
ContextActivity
== null)
166
if (childContext.Activity.
ContextActivity
.ExecutionStatus != ActivityExecutionStatus.Closed && childContext.Activity.
ContextActivity
.ExecutionStatus != ActivityExecutionStatus.Initialized)
170
ActivityExecutionContextInfo childContextInfo = childContext.Activity.
ContextActivity
.GetValue(Activity.ActivityExecutionContextInfoProperty) as ActivityExecutionContextInfo;
171
IList<Activity> activeContexts = (IList<Activity>)this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.ActiveExecutionContextsProperty);
172
if (activeContexts == null || !activeContexts.Contains(childContext.Activity.
ContextActivity
))
180
List<ActivityExecutionContextInfo> completedContexts = this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.CompletedExecutionContextsProperty) as List<ActivityExecutionContextInfo>;
184
this.ownerContext.Activity.
ContextActivity
.SetValue(Activity.CompletedExecutionContextsProperty, completedContexts);
200
activeContexts.Remove(childContext.Activity.
ContextActivity
);
206
if (childContext.Activity.
ContextActivity
.CanUninitializeNow && childContext.Activity.
ContextActivity
.ExecutionResult != ActivityExecutionResult.Uninitialized)
208
childContext.Activity.
ContextActivity
.Uninitialize(this.ownerContext.Activity.RootActivity.WorkflowCoreRuntime);
209
childContext.Activity.
ContextActivity
.SetValue(Activity.ExecutionResultProperty, ActivityExecutionResult.Uninitialized);
236
if (context.Activity.
ContextActivity
.QualifiedName == activity.QualifiedName)
256
List<ActivityExecutionContextInfo> completedContexts = this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.CompletedExecutionContextsProperty) as List<ActivityExecutionContextInfo>;
274
IList<ActivityExecutionContextInfo> completedContexts = this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.CompletedExecutionContextsProperty) as IList<ActivityExecutionContextInfo>;
315
List<ActivityExecutionContextInfo> completedContexts = this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.CompletedExecutionContextsProperty) as List<ActivityExecutionContextInfo>;
327
IList<ActivityExecutionContextInfo> completedContexts = this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.CompletedExecutionContextsProperty) as IList<ActivityExecutionContextInfo>;
332
Activity revokedActivity = this.ownerContext.WorkflowCoreRuntime.LoadContextActivity(contextInfo, this.ownerContext.Activity.
ContextActivity
.GetActivityByName(contextInfo.ActivityQualifiedName));
336
IList<Activity> activeContexts = (IList<Activity>)this.ownerContext.Activity.
ContextActivity
.GetValue(Activity.ActiveExecutionContextsProperty);
340
this.ownerContext.Activity.
ContextActivity
.SetValue(Activity.ActiveExecutionContextsProperty, activeContexts);
350
System.Workflow.Runtime.WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0, "Revoking context {0}:{1}", revokedContext.ContextId, revokedContext.Activity.
ContextActivity
.QualifiedName);
AuthoringOM\ActivityExecutorDelegateInfo.cs (2)
51
this.contextId = contextActivity.WorkflowCoreRuntime.CurrentActivity.
ContextActivity
.ContextId;
70
this.contextId = contextActivity.WorkflowCoreRuntime.CurrentActivity.
ContextActivity
.ContextId;
AuthoringOM\ActivityStatusChangeEventArgs.cs (1)
25
this.stateId = activity.
ContextActivity
.ContextId;
AuthoringOM\Serializer\ActivitySurrogate.cs (3)
30
if (activity.
ContextActivity
!= null)
138
if (activity.Parent.
ContextActivity
!= null)
139
activeContextActivities = (IList<Activity>)activity.Parent.
ContextActivity
.GetValue(Activity.ActiveExecutionContextsProperty);