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