84 references to WorkflowCoreRuntime
System.Workflow.ComponentModel (84)
AuthoringOM\Activity.cs (35)
337
if (this.
WorkflowCoreRuntime
== null)
345
this.
WorkflowCoreRuntime
.RaiseHandlerInvoking(eventHandler);
352
this.
WorkflowCoreRuntime
.RaiseHandlerInvoked();
369
if (this.
WorkflowCoreRuntime
== null)
377
this.
WorkflowCoreRuntime
.RaiseHandlerInvoking(eventHandler);
384
this.
WorkflowCoreRuntime
.RaiseHandlerInvoked();
394
if (this.
WorkflowCoreRuntime
== null)
397
this.
WorkflowCoreRuntime
.Track(null, userData);
403
if (this.
WorkflowCoreRuntime
== null)
406
this.
WorkflowCoreRuntime
.Track(userDataKey, userData);
412
if (this.
WorkflowCoreRuntime
== null)
415
return this.
WorkflowCoreRuntime
.InstanceID;
427
if (this.
WorkflowCoreRuntime
== null)
435
using (this.
WorkflowCoreRuntime
.SetCurrentActivity(this))
438
activityExecutorDelegate.InvokeDelegate(this.
WorkflowCoreRuntime
.CurrentActivity.ContextActivity, e, false);
449
if (this.
WorkflowCoreRuntime
== null)
457
using (this.
WorkflowCoreRuntime
.SetCurrentActivity(this))
460
activityExecutorDelegate.InvokeDelegate(this.
WorkflowCoreRuntime
.CurrentActivity.ContextActivity, e, false);
1343
return this.
WorkflowCoreRuntime
.GetContextActivityForId(executionContextInfo.ParentContextId);
1350
return this.
WorkflowCoreRuntime
.RootActivity;
1478
this.
WorkflowCoreRuntime
.ActivityStatusChanged(this, transacted, false);
1569
this.OnClosed(this.RootActivity.
WorkflowCoreRuntime
);
1586
this.Uninitialize(this.RootActivity.
WorkflowCoreRuntime
);
1599
this.
WorkflowCoreRuntime
.ActivityStatusChanged(this, false, true);
1605
this.
WorkflowCoreRuntime
.TerminateInstance(exception);
1609
this.
WorkflowCoreRuntime
.RaiseException(exception, this.Parent, string.Empty);
1614
this.
WorkflowCoreRuntime
.PersistInstanceState(this);
1615
this.
WorkflowCoreRuntime
.ActivityStatusChanged(this, false, true);
1620
this.
WorkflowCoreRuntime
.RaiseException(exception, this.Parent, string.Empty);
1668
this.OnClosed(this.RootActivity.
WorkflowCoreRuntime
);
1679
this.Uninitialize(this.RootActivity.
WorkflowCoreRuntime
);
1686
this.
WorkflowCoreRuntime
.RaiseException(exception, this.Parent, string.Empty);
1756
compensatableChild.Uninitialize(activity.RootActivity.
WorkflowCoreRuntime
);
1762
activity.Uninitialize(activity.RootActivity.
WorkflowCoreRuntime
);
2065
if (this.
WorkflowCoreRuntime
== null)
AuthoringOM\ActivityExecutionContext.cs (22)
157
return this.currentActivity.
WorkflowCoreRuntime
.GetService(this.currentActivity, serviceType);
207
using (this.currentActivity.
WorkflowCoreRuntime
.SetCurrentActivity(activity))
223
this.currentActivity.
WorkflowCoreRuntime
.CurrentActivity.ExecutionStatus == ActivityExecutionStatus.Initialized ||
224
this.currentActivity.
WorkflowCoreRuntime
.CurrentActivity.ExecutionStatus == ActivityExecutionStatus.Closed
242
this.currentActivity.
WorkflowCoreRuntime
.ScheduleItem(new ActivityExecutorOperation(activity, ActivityOperationType.Execute, this.ContextId), IsInAtomicTransaction(activity), false, false);
257
this.currentActivity.
WorkflowCoreRuntime
.CurrentActivity.ExecutionStatus == ActivityExecutionStatus.Initialized ||
258
this.currentActivity.
WorkflowCoreRuntime
.CurrentActivity.ExecutionStatus == ActivityExecutionStatus.Closed
275
this.currentActivity.
WorkflowCoreRuntime
.ScheduleItem(new ActivityExecutorOperation(activity, ActivityOperationType.Cancel, this.ContextId), IsInAtomicTransaction(activity), false, false);
298
this.currentActivity.
WorkflowCoreRuntime
.ScheduleItem(new ActivityExecutorOperation(activity, ActivityOperationType.Compensate, this.ContextId), IsInAtomicTransaction(activity), false, false);
313
this.currentActivity.
WorkflowCoreRuntime
.TerminateInstance(e);
317
this.currentActivity.
WorkflowCoreRuntime
.RaiseException(e, this.currentActivity.Parent, string.Empty);
329
this.currentActivity.
WorkflowCoreRuntime
.ScheduleItem(new ActivityExecutorOperation(this.currentActivity, ActivityOperationType.HandleFault, this.ContextId, e), IsInAtomicTransaction(this.currentActivity), false, false);
382
this.currentActivity.
WorkflowCoreRuntime
.Track(null, userData);
394
this.currentActivity.
WorkflowCoreRuntime
.Track(userDataKey, userData);
596
this.currentActivity.
WorkflowCoreRuntime
.SuspendInstance(suspendDescription);
606
this.currentActivity.
WorkflowCoreRuntime
.TerminateInstance(e);
613
this.currentActivity.
WorkflowCoreRuntime
.CheckpointInstanceState(this.currentActivity);
620
this.currentActivity.
WorkflowCoreRuntime
.RequestRevertToCheckpointState(this.currentActivity, handler, data, suspendOnRevert, suspendOnRevertInfo);
627
this.currentActivity.
WorkflowCoreRuntime
.DisposeCheckpointState();
638
if (activity == this.currentActivity.
WorkflowCoreRuntime
.CurrentActivity && this.allowSignalsOnCurrentActivity)
641
if (activity.Enabled && activity.Parent == this.currentActivity.
WorkflowCoreRuntime
.CurrentActivity && (allowContextVariance || activity.Equals(this.Activity.GetActivityByName(activity.QualifiedName, true))))
676
if (activity == activity.
WorkflowCoreRuntime
.CurrentAtomicActivity)
AuthoringOM\ActivityExecutionContextCollection.cs (7)
68
((IDependencyObjectAccessor)copiedActivity).InitializeInstanceForRuntime(this.ownerContext.Activity.
WorkflowCoreRuntime
);
119
this.ownerContext.Activity.
WorkflowCoreRuntime
.RegisterContextActivity(copiedActivity);
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);
333
((IDependencyObjectAccessor)revokedActivity).InitializeInstanceForRuntime(this.ownerContext.Activity.
WorkflowCoreRuntime
);
345
this.ownerContext.Activity.
WorkflowCoreRuntime
.RegisterContextActivity(revokedActivity);
AuthoringOM\ActivityExecutorDelegateInfo.cs (13)
48
if (contextActivity.
WorkflowCoreRuntime
!= null)
51
this.contextId = contextActivity.
WorkflowCoreRuntime
.CurrentActivity.ContextActivity.ContextId;
55
this.activityQualifiedName = (target ?? contextActivity.
WorkflowCoreRuntime
.CurrentActivity).QualifiedName;
67
if (contextActivity.
WorkflowCoreRuntime
!= null)
70
this.contextId = contextActivity.
WorkflowCoreRuntime
.CurrentActivity.ContextActivity.ContextId;
74
this.activityQualifiedName = (target ?? contextActivity.
WorkflowCoreRuntime
.CurrentActivity).QualifiedName;
126
Activity targetContextActivity = currentContextActivity.
WorkflowCoreRuntime
.GetContextActivityForId(this.contextId);
158
using (currentContextActivity.
WorkflowCoreRuntime
.SetCurrentActivity(targetActivity))
161
delegateOperation.Run(currentContextActivity.
WorkflowCoreRuntime
);
169
currentContextActivity.
WorkflowCoreRuntime
.ScheduleItem(delegateOperation, ActivityExecutionContext.IsInAtomicTransaction(targetActivity), transacted, !mayInvokeDelegateNow);
180
if (!ActivityExecutionContext.IsInAtomicTransaction(currentContextActivity.
WorkflowCoreRuntime
.CurrentActivity))
185
Activity targetContextActivity = currentContextActivity.
WorkflowCoreRuntime
.GetContextActivityForId(this.contextId);
197
ActivityExecutionContext.IsInAtomicTransaction(currentContextActivity.
WorkflowCoreRuntime
.CurrentActivity))
AuthoringOM\ScheduleChanges.cs (7)
160
if (activity.
WorkflowCoreRuntime
== null)
172
IWorkflowCoreRuntime workflowCoreRuntime = activity.
WorkflowCoreRuntime
;
414
addedActivity.OnActivityExecutionContextLoad(executionContext.Activity.RootActivity.
WorkflowCoreRuntime
);
427
removedActivityAction.OriginalRemovedActivity.Uninitialize(executionContext.Activity.RootActivity.
WorkflowCoreRuntime
);
430
removedActivityAction.OriginalRemovedActivity.OnActivityExecutionContextUnload(executionContext.Activity.RootActivity.
WorkflowCoreRuntime
);
789
if (ownerActivity.
WorkflowCoreRuntime
!= null)
790
((IDependencyObjectAccessor)clonedAddedActivity).InitializeInstanceForRuntime(ownerActivity.
WorkflowCoreRuntime
);