2 writes to currentActivity
System.Workflow.ComponentModel (2)
AuthoringOM\ActivityExecutionContext.cs (2)
66this.currentActivity = activity; 713this.currentActivity = null;
67 references to currentActivity
System.Workflow.ComponentModel (67)
AuthoringOM\ActivityExecutionContext.cs (67)
80if (this.currentActivity == null) 84return this.currentActivity; 92if (this.currentActivity == null) 129if (this.currentActivity == null) 157return this.currentActivity.WorkflowCoreRuntime.GetService(this.currentActivity, serviceType); 168if (this.currentActivity == null) 172return this.currentActivity.ContextActivity.ContextGuid; 179if (this.currentActivity == null) 183return this.currentActivity.ContextActivity.ContextId; 193if (this.currentActivity == null) 207using (this.currentActivity.WorkflowCoreRuntime.SetCurrentActivity(activity)) 213if (this.currentActivity == null) 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); 247if (this.currentActivity == null) 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); 280if (this.currentActivity == null) 298this.currentActivity.WorkflowCoreRuntime.ScheduleItem(new ActivityExecutorOperation(activity, ActivityOperationType.Compensate, this.ContextId), IsInAtomicTransaction(activity), false, false); 303if (this.currentActivity == null) 307if (this.currentActivity.ExecutionStatus == ActivityExecutionStatus.Closed) 309if (this.currentActivity.Parent == null) 313this.currentActivity.WorkflowCoreRuntime.TerminateInstance(e); 317this.currentActivity.WorkflowCoreRuntime.RaiseException(e, this.currentActivity.Parent, string.Empty); 324this.currentActivity.SetValueCommon(CurrentExceptionProperty, e, CurrentExceptionProperty.DefaultMetadata, false); 325this.currentActivity.SetStatus(ActivityExecutionStatus.Faulting, false); 329this.currentActivity.WorkflowCoreRuntime.ScheduleItem(new ActivityExecutorOperation(this.currentActivity, ActivityOperationType.HandleFault, this.ContextId, e), IsInAtomicTransaction(this.currentActivity), false, false); 336if (this.currentActivity == null) 339switch (this.currentActivity.ExecutionStatus) 342this.currentActivity.MarkCompleted(); 345this.currentActivity.MarkCanceled(); 348this.currentActivity.MarkCompensated(); 351this.currentActivity.MarkFaulted(); 362if (this.currentActivity == null) 366this.currentActivity.Invoke(handler, e); 376if (this.currentActivity == null) 382this.currentActivity.WorkflowCoreRuntime.Track(null, userData); 388if (this.currentActivity == null) 394this.currentActivity.WorkflowCoreRuntime.Track(userDataKey, userData); 403if (this.currentActivity == null) 461if (this.currentActivity == null) 593if (this.currentActivity == null) 596this.currentActivity.WorkflowCoreRuntime.SuspendInstance(suspendDescription); 600if (this.currentActivity == null) 606this.currentActivity.WorkflowCoreRuntime.TerminateInstance(e); 610if (this.currentActivity == null) 613this.currentActivity.WorkflowCoreRuntime.CheckpointInstanceState(this.currentActivity); 617if (this.currentActivity == null) 620this.currentActivity.WorkflowCoreRuntime.RequestRevertToCheckpointState(this.currentActivity, handler, data, suspendOnRevert, suspendOnRevertInfo); 624if (this.currentActivity == null) 627this.currentActivity.WorkflowCoreRuntime.DisposeCheckpointState(); 635if (this.currentActivity == null) 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)))) 648if (this.currentActivity == null) 651if (activity == this.currentActivity) 655while (parentActivity != null && parentActivity.Enabled && parentActivity.Parent != this.currentActivity.ContextActivity) 664if (this.currentActivity == null) 706if (this.currentActivity != null)