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