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