2 writes to ownerContext
System.Workflow.ComponentModel (2)
AuthoringOM\ActivityExecutionContextCollection.cs (2)
29
this.
ownerContext
= ownerContext;
305
this.
ownerContext
= null;
33 references to ownerContext
System.Workflow.ComponentModel (33)
AuthoringOM\ActivityExecutionContextCollection.cs (33)
32
IList<Activity> activeContexts = (IList<Activity>)this.
ownerContext
.Activity.ContextActivity.GetValue(Activity.ActiveExecutionContextsProperty);
48
if (this.
ownerContext
== null)
58
if (this.
ownerContext
== null)
64
if (!this.
ownerContext
.IsValidChild(activity, true))
68
((IDependencyObjectAccessor)copiedActivity).InitializeInstanceForRuntime(this.
ownerContext
.Activity.WorkflowCoreRuntime);
103
IList<Activity> activeContexts = (IList<Activity>)this.
ownerContext
.Activity.ContextActivity.GetValue(Activity.ActiveExecutionContextsProperty);
107
this.
ownerContext
.Activity.ContextActivity.SetValue(Activity.ActiveExecutionContextsProperty, activeContexts);
112
ActivityExecutionContextInfo contextInfo = new ActivityExecutionContextInfo(activity.QualifiedName, this.
ownerContext
.WorkflowCoreRuntime.GetNewContextActivityId(), Guid.NewGuid(), this.
ownerContext
.ContextId);
119
this.
ownerContext
.Activity.WorkflowCoreRuntime.RegisterContextActivity(copiedActivity);
143
if (this.
ownerContext
== null)
151
if (this.
ownerContext
== null)
171
IList<Activity> activeContexts = (IList<Activity>)this.
ownerContext
.Activity.ContextActivity.GetValue(Activity.ActiveExecutionContextsProperty);
180
List<ActivityExecutionContextInfo> completedContexts = this.
ownerContext
.Activity.ContextActivity.GetValue(Activity.CompletedExecutionContextsProperty) as List<ActivityExecutionContextInfo>;
184
this.
ownerContext
.Activity.ContextActivity.SetValue(Activity.CompletedExecutionContextsProperty, completedContexts);
192
childContextInfo.SetCompletedOrderId(this.
ownerContext
.Activity.IncrementCompletedOrderId());
196
this.
ownerContext
.Activity.WorkflowCoreRuntime.SaveContextActivity(childContext.Activity);
208
childContext.Activity.ContextActivity.Uninitialize(this.
ownerContext
.Activity.RootActivity.WorkflowCoreRuntime);
213
this.
ownerContext
.Activity.WorkflowCoreRuntime.UnregisterContextActivity(childContext.Activity);
223
if (this.
ownerContext
== null)
252
if (this.
ownerContext
== null)
256
List<ActivityExecutionContextInfo> completedContexts = this.
ownerContext
.Activity.ContextActivity.GetValue(Activity.CompletedExecutionContextsProperty) as List<ActivityExecutionContextInfo>;
270
if (this.
ownerContext
== null)
274
IList<ActivityExecutionContextInfo> completedContexts = this.
ownerContext
.Activity.ContextActivity.GetValue(Activity.CompletedExecutionContextsProperty) as IList<ActivityExecutionContextInfo>;
301
if (this.
ownerContext
!= null)
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));
333
((IDependencyObjectAccessor)revokedActivity).InitializeInstanceForRuntime(this.
ownerContext
.Activity.WorkflowCoreRuntime);
336
IList<Activity> activeContexts = (IList<Activity>)this.
ownerContext
.Activity.ContextActivity.GetValue(Activity.ActiveExecutionContextsProperty);
340
this.
ownerContext
.Activity.ContextActivity.SetValue(Activity.ActiveExecutionContextsProperty, activeContexts);
345
this.
ownerContext
.Activity.WorkflowCoreRuntime.RegisterContextActivity(revokedActivity);