10 instantiations of ActivityExecutionContext
System.Workflow.ComponentModel (10)
AuthoringOM\Activity.cs (2)
1544
ActivityExecutionContext currentContext = new
ActivityExecutionContext
(this);
1591
UninitializeCompletedContext(this, new
ActivityExecutionContext
(this));
AuthoringOM\ActivityExecutionContext.cs (1)
205
using (ActivityExecutionContext executionContext = new
ActivityExecutionContext
(activity))
AuthoringOM\ActivityExecutionContextCollection.cs (3)
36
this.executionContexts.Add(new
ActivityExecutionContext
(activeContextActivity));
122
newExecutionContext = new
ActivityExecutionContext
(copiedActivity);
348
ActivityExecutionContext revokedContext = new
ActivityExecutionContext
(revokedActivity);
AuthoringOM\ActivityExecutorDelegateInfo.cs (1)
329
using (ActivityExecutionContext activityExecutionContext = new
ActivityExecutionContext
(activity))
AuthoringOM\ActivityExecutorOperation.cs (1)
72
using (ActivityExecutionContext activityExecutionContext = new
ActivityExecutionContext
(activity))
AuthoringOM\ScheduleChanges.cs (2)
368
using (ActivityExecutionContext executionContext = new
ActivityExecutionContext
(compositeActivity))
407
using (ActivityExecutionContext executionContext = new
ActivityExecutionContext
(ownerActivity))
437 references to ActivityExecutionContext
System.Workflow.Activities (230)
Code.cs (1)
42
protected override sealed ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
CompensatableSequenceActivity.cs (1)
42
ActivityExecutionStatus ICompensatableActivity.Compensate(
ActivityExecutionContext
executionContext)
Conditional.cs (4)
74
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
98
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
128
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
ConstrainedGroup.cs (23)
211
protected override void OnActivityChangeAdd(
ActivityExecutionContext
executionContext, Activity addedActivity)
232
protected override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
254
protected override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
296
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
324
internal bool EvaluateConditions(ConditionedActivityGroup cag,
ActivityExecutionContext
context)
398
private bool EvaluateChildConditions(ConditionedActivityGroup cag, Activity child,
ActivityExecutionContext
context)
424
internal void TriggerChildren(ConditionedActivityGroup cag,
ActivityExecutionContext
context)
451
private void ExecuteChild(ConditionedActivityGroup cag, Activity childActivity,
ActivityExecutionContext
context)
460
ActivityExecutionContext
childContext = GetChildExecutionContext(context, childActivity, true);
470
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
488
this.HandleEvent(sender as
ActivityExecutionContext
, new SubscriptionEventArg(e, EventType.StatusChange));
492
internal void HandleEvent(
ActivityExecutionContext
context, SubscriptionEventArg e)
580
internal bool Cleanup(ConditionedActivityGroup cag,
ActivityExecutionContext
context)
597
ActivityExecutionContext
childContext = GetChildExecutionContext(context, act, false);
633
private void CleanupChildAtClosure(
ActivityExecutionContext
context, Activity childActivity)
643
ActivityExecutionContext
childContext = GetChildExecutionContext(context, childActivity, false);
648
private Activity GetRuntimeInitializedActivity(
ActivityExecutionContext
context, Activity childActivity)
650
ActivityExecutionContext
childContext = GetChildExecutionContext(context, childActivity, false);
658
private static
ActivityExecutionContext
GetChildExecutionContext(
ActivityExecutionContext
context, Activity childActivity, bool createIfNotExists)
661
ActivityExecutionContext
childContext = contextManager.GetExecutionContext(childActivity);
671
bool AllChildrenQuiet(ConditionedActivityGroup cag,
ActivityExecutionContext
context)
677
foreach (
ActivityExecutionContext
activeContext in context.ExecutionContextManager.ExecutionContexts)
Delay.cs (7)
96
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
113
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
128
protected sealed override ActivityExecutionStatus HandleFault(
ActivityExecutionContext
executionContext, Exception exception)
280
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
298
void IEventActivity.Subscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler)
329
void IEventActivity.Unsubscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler)
EventHandlers.cs (15)
91
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
108
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
127
ActivityExecutionContext
childContext = contextManager.GetExecutionContext(childActivity);
160
protected override void OnActivityChangeAdd(
ActivityExecutionContext
executionContext, Activity addedActivity)
179
protected override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
206
protected override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
244
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
270
ActivityExecutionContext
childContext = contextManager.CreateExecutionContext(eventHandlers.EnabledActivities[i]);
296
private bool AllHandlersAreQuiet(EventHandlersActivity handlers,
ActivityExecutionContext
context)
315
ActivityExecutionContext
context = (
ActivityExecutionContext
)sender;
392
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
409
ActivityExecutionContext
childContext = contextManager.CreateExecutionContext(eventDrivenActivity);
EventHandlingScope.cs (6)
38
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
64
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
106
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
167
protected override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
177
protected override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
EventSinkActivity.cs (8)
283
protected sealed override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
308
protected sealed override ActivityExecutionStatus HandleFault(
ActivityExecutionContext
executionContext, Exception exception)
323
protected sealed override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
338
private void UnsubscribeForActivity(
ActivityExecutionContext
context)
349
ActivityExecutionContext
context = (
ActivityExecutionContext
)sender;
383
void IEventActivity.Subscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler)
393
void IEventActivity.Unsubscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler)
Executors\InboundActivityHelper.cs (2)
20
internal static ActivityExecutionStatus ExecuteForActivity(HandleExternalEventActivity activity,
ActivityExecutionContext
context, Type interfaceType, string operation, out object[] args)
54
private static object[] ProcessEvent(HandleExternalEventActivity activity,
ActivityExecutionContext
context, object msg, Type interfaceType, string operation)
Interfaces.cs (2)
46
void Subscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler);
47
void Unsubscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler);
InvokeMethodActivity.cs (1)
185
protected sealed override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
InvokeSchedule.cs (1)
159
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
InvokeWebService.cs (1)
103
protected override sealed ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
Listen.cs (9)
49
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
68
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
127
protected override sealed void OnActivityChangeAdd(
ActivityExecutionContext
executionContext, Activity addedActivity)
146
protected override sealed void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
177
protected override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
229
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
257
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
LocalService\CorrelationTokenInvalidatedHandler.cs (4)
41
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
64
private void CreateSubscription(Guid instanceId,
ActivityExecutionContext
context, ICollection<CorrelationProperty> correlationValues)
113
private void DeleteSubscription(
ActivityExecutionContext
context)
Parallel.cs (7)
48
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
65
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
96
protected override void OnActivityChangeAdd(
ActivityExecutionContext
executionContext, Activity addedActivity)
112
protected override void OnActivityChangeRemove(
ActivityExecutionContext
rootExecutionContext, Activity removedActivity)
117
protected override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
149
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
Policy.cs (1)
61
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
Rules\DeclarativeExpressionConditionDeclaration.cs (1)
273
RuleExecution context = new RuleExecution(validation, contextActivity, provider as
ActivityExecutionContext
);
Rules\Executor.cs (4)
203
private
ActivityExecutionContext
activityExecutionContext;
226
public RuleExecution(RuleValidation validation, object thisObject,
ActivityExecutionContext
activityExecutionContext)
266
public
ActivityExecutionContext
ActivityExecutionContext
381
ActivityExecutionContext
activityExecutionContext = ruleExecution.ActivityExecutionContext;
Rules\RuleEngine.cs (2)
30
internal RuleEngine(RuleSet ruleSet, RuleValidation validation,
ActivityExecutionContext
executionContext)
49
public void Execute(object thisObject,
ActivityExecutionContext
executionContext)
Rules\RuleSet.cs (1)
138
internal void Execute(Activity activity,
ActivityExecutionContext
executionContext)
Rules\Tracer.cs (1)
32
internal Tracer(string name,
ActivityExecutionContext
activityExecutionContext)
Schedule.cs (2)
98
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
107
protected override sealed void OnSequenceComplete(
ActivityExecutionContext
executionContext)
Sequence.cs (9)
47
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
65
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
93
protected override ActivityExecutionStatus HandleFault(
ActivityExecutionContext
executionContext, Exception exception)
114
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
147
private bool TryScheduleNextChild(
ActivityExecutionContext
executionContext)
179
protected virtual void OnSequenceComplete(
ActivityExecutionContext
executionContext)
189
protected override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
198
protected override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
SetState.cs (1)
63
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
SR.cs (1)
734
return GetString("Error_SenderMustBeActivityExecutionContext", typeof(System.Workflow.ComponentModel.
ActivityExecutionContext
).FullName);
State.cs (34)
112
ActivityExecutionContext
context = (
ActivityExecutionContext
)provider;
129
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
153
private void ExecuteRootState(
ActivityExecutionContext
context)
166
private static void ExecuteState(
ActivityExecutionContext
context)
173
private static void ExecuteLeafState(
ActivityExecutionContext
context)
192
private static void EnteringLeafState(
ActivityExecutionContext
context)
234
internal static void LeavingState(
ActivityExecutionContext
context)
252
private static void CleanUp(
ActivityExecutionContext
context)
271
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
283
foreach (
ActivityExecutionContext
existingContext in contextManager.ExecutionContexts)
296
private static void Complete(
ActivityExecutionContext
context)
313
private static void ExecuteChild(
ActivityExecutionContext
context, Activity childActivity)
325
ActivityExecutionContext
childContext = contextManager.CreateExecutionContext(childActivity);
330
private static void CleanupChildAtClosure(
ActivityExecutionContext
context, Activity childActivity)
342
ActivityExecutionContext
childContext = contextManager.GetExecutionContext(childActivity);
346
internal void RaiseProcessActionEvent(
ActivityExecutionContext
context)
357
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
370
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
432
internal static void ExecuteEventDriven(
ActivityExecutionContext
context, EventDrivenActivity eventDriven)
439
private static void HandleEventDrivenCompleted(
ActivityExecutionContext
context)
456
private static void ExecuteStateInitialization(
ActivityExecutionContext
context, StateInitializationActivity stateInitialization)
463
private static void HandleStateInitializationCompleted(
ActivityExecutionContext
context, StateInitializationActivity stateInitialization)
479
private static void ExecuteStateFinalization(
ActivityExecutionContext
context, StateFinalizationActivity stateFinalization)
485
private static void HandleStateFinalizationCompleted(
ActivityExecutionContext
context)
494
internal static void ExecuteState(
ActivityExecutionContext
context, StateActivity state)
500
private static void HandleSubStateCompleted(
ActivityExecutionContext
context)
521
private static StateInitializationActivity GetStateInitialization(
ActivityExecutionContext
context)
529
private static StateFinalizationActivity GetStateFinalization(
ActivityExecutionContext
context)
537
private static T GetHandlerActivity<T>(
ActivityExecutionContext
context) where T : class
551
private static StateMachineExecutionState GetExecutionState(
ActivityExecutionContext
context)
578
protected override void OnActivityChangeAdd(
ActivityExecutionContext
executionContext, Activity addedActivity)
StateMachineAction.cs (9)
75
internal virtual void Execute(
ActivityExecutionContext
context)
97
internal override void Execute(
ActivityExecutionContext
context)
123
internal override void Execute(
ActivityExecutionContext
context)
151
internal override void Execute(
ActivityExecutionContext
context)
179
internal override void Execute(
ActivityExecutionContext
context)
207
internal override void Execute(
ActivityExecutionContext
context)
234
internal override void Execute(
ActivityExecutionContext
context)
249
internal override void Execute(
ActivityExecutionContext
context)
294
internal override void Execute(
ActivityExecutionContext
context)
StateMachineExecutionState.cs (2)
154
internal void ProcessActions(
ActivityExecutionContext
context)
207
internal void ProcessTransitionRequest(
ActivityExecutionContext
context)
StateMachineHelpers.cs (2)
54
internal static bool IsRootExecutionContext(
ActivityExecutionContext
context)
158
static internal StateActivity GetCurrentState(
ActivityExecutionContext
context)
StateMachineSubscription.cs (14)
48
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
55
protected abstract void Enqueue(
ActivityExecutionContext
context);
56
internal abstract void ProcessEvent(
ActivityExecutionContext
context);
111
internal void Subscribe(
ActivityExecutionContext
context,
125
internal void Unsubscribe(
ActivityExecutionContext
context,
131
protected override void Enqueue(
ActivityExecutionContext
context)
138
internal override void ProcessEvent(
ActivityExecutionContext
context)
163
internal void CreateQueue(
ActivityExecutionContext
context)
186
internal void DeleteQueue(
ActivityExecutionContext
context)
202
internal void Subscribe(
ActivityExecutionContext
context)
209
internal void Unsubscribe(
ActivityExecutionContext
context)
216
protected override void Enqueue(
ActivityExecutionContext
context)
223
internal override void ProcessEvent(
ActivityExecutionContext
context)
StateMachineSubscriptionManager.cs (18)
68
internal void UnsubscribeState(
ActivityExecutionContext
context)
82
internal void ReevaluateSubscriptions(
ActivityExecutionContext
context)
162
internal void SubscribeEventDriven(
ActivityExecutionContext
context, EventDrivenActivity eventDriven)
171
internal void UnsubscribeEventDriven(
ActivityExecutionContext
context, EventDrivenActivity eventDriven)
178
private StateMachineSubscription SubscribeEventActivity(
ActivityExecutionContext
context,
194
private void UnsubscribeEventActivity(
ActivityExecutionContext
context,
209
private void UnsubscribeEventActivity(
ActivityExecutionContext
context,
227
internal void CreateSetStateEventQueue(
ActivityExecutionContext
context)
233
internal void DeleteSetStateEventQueue(
ActivityExecutionContext
context)
239
internal void SubscribeToSetStateEvent(
ActivityExecutionContext
context)
245
internal void UnsubscribeToSetStateEvent(
ActivityExecutionContext
context)
288
internal static void DisableStateWorkflowQueues(
ActivityExecutionContext
context, StateActivity state)
293
private static void ChangeStateWorkflowQueuesState(
ActivityExecutionContext
context, StateActivity state, bool enabled)
303
internal static void ChangeEventDrivenQueueState(
ActivityExecutionContext
context, EventDrivenActivity eventDriven, bool enabled)
314
internal static WorkflowQueue GetWorkflowQueue(
ActivityExecutionContext
context, IComparable queueName)
343
internal void Enqueue(
ActivityExecutionContext
context, Guid subscriptionId)
355
internal void Enqueue(
ActivityExecutionContext
context, IComparable queueName)
379
internal void ProcessQueue(
ActivityExecutionContext
context)
Task.cs (16)
364
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
404
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
486
ActivityExecutionContext
executionContext = sender as
ActivityExecutionContext
;
506
private void CancelChildExecution(
ActivityExecutionContext
executionContext, ChildExecutionStateInfo childStateInfo)
525
private void ExecuteTemplate(
ActivityExecutionContext
executionContext, ChildExecutionStateInfo childStateInfo)
530
ActivityExecutionContext
templateExecutionContext = contextManager.CreateExecutionContext(this.EnabledActivities[0]);
548
private void HandleStatusChange(
ActivityExecutionContext
executionContext, ActivityExecutionStatusChangedEventArgs e, ReplicatorSubscriber subscriber)
577
ActivityExecutionContext
templateExecutionContext = contextManager.GetExecutionContext(e.Activity);
654
bool TryCancelChildren(
ActivityExecutionContext
executionContext)
674
bool TryCancelChild(
ActivityExecutionContext
outerProvider, ChildExecutionStateInfo childStateInfo)
684
ActivityExecutionContext
innerProvider = GetExecutionContext(contextManager, childStateInfo.RunId);
714
private
ActivityExecutionContext
GetExecutionContext(ActivityExecutionContextManager contextManager, Guid contextIdGuid)
716
foreach (
ActivityExecutionContext
context in contextManager.ExecutionContexts)
770
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
WebServiceFault.cs (1)
132
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
WebServiceReceive.cs (11)
226
protected sealed override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
249
private ActivityExecutionStatus ExecuteForActivity(
ActivityExecutionContext
context, Type interfaceType, string operation)
268
private void ProcessMessage(
ActivityExecutionContext
context, object msg, Type interfaceType, string operation)
289
private void ProcessParameters(
ActivityExecutionContext
context, IMethodMessage message, Type interfaceType, string operation)
332
protected sealed override ActivityExecutionStatus HandleFault(
ActivityExecutionContext
executionContext, Exception exception)
347
protected sealed override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
357
private void UnsubscribeForActivity(
ActivityExecutionContext
context)
368
ActivityExecutionContext
context = (
ActivityExecutionContext
)sender;
384
void IEventActivity.Subscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler)
394
void IEventActivity.Unsubscribe(
ActivityExecutionContext
parentContext, IActivityEventListener<QueueEventArgs> parentEventHandler)
WebServiceResponse.cs (1)
124
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
While.cs (7)
81
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
91
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
101
ActivityExecutionContext
childContext = contextManager.GetExecutionContext(childActivity);
115
private bool TryNextIteration(
ActivityExecutionContext
context)
124
ActivityExecutionContext
innerContext = contextManager.CreateExecutionContext(this.EnabledActivities[0]);
145
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
System.Workflow.ComponentModel (179)
AuthoringOM\Activity.cs (30)
225
DependencyProperty.RegisterAsKnown(
ActivityExecutionContext
.CurrentExceptionProperty, (byte)23, DependencyProperty.PropertyValidity.Reexecute);
226
DependencyProperty.RegisterAsKnown(
ActivityExecutionContext
.GrantedLocksProperty, (byte)24, DependencyProperty.PropertyValidity.Uninitialize);
227
DependencyProperty.RegisterAsKnown(
ActivityExecutionContext
.LockAcquiredCallbackProperty, (byte)25, DependencyProperty.PropertyValidity.Uninitialize);
269
protected internal virtual ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
276
protected internal virtual ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
283
protected internal virtual ActivityExecutionStatus HandleFault(
ActivityExecutionContext
executionContext, Exception exception)
1544
ActivityExecutionContext
currentContext = new ActivityExecutionContext(this);
1546
foreach (
ActivityExecutionContext
childContext in currentContext.ExecutionContextManager.ExecutionContexts)
1574
this.SetValueCommon(
ActivityExecutionContext
.CurrentExceptionProperty, e,
ActivityExecutionContext
.CurrentExceptionProperty.DefaultMetadata, false);
1596
Exception exception = (Exception)this.GetValue(
ActivityExecutionContext
.CurrentExceptionProperty);
1610
this.RemoveProperty(
ActivityExecutionContext
.CurrentExceptionProperty);
1621
this.RemoveProperty(
ActivityExecutionContext
.CurrentExceptionProperty);
1630
parent.RemoveProperty(
ActivityExecutionContext
.CachedGrantedLocksProperty);
1652
object cachedGrantedLocks = parent.GetValue(
ActivityExecutionContext
.CachedGrantedLocksProperty);
1654
parent.SetValue(
ActivityExecutionContext
.GrantedLocksProperty, cachedGrantedLocks);
1655
parent.RemoveProperty(
ActivityExecutionContext
.CachedGrantedLocksProperty);
1673
this.SetValueCommon(
ActivityExecutionContext
.CurrentExceptionProperty, e,
ActivityExecutionContext
.CurrentExceptionProperty.DefaultMetadata, false);
1683
Exception exception = (Exception)this.GetValue(
ActivityExecutionContext
.CurrentExceptionProperty);
1687
this.RemoveProperty(
ActivityExecutionContext
.CurrentExceptionProperty);
1728
static void UninitializeCompletedContext(Activity activity,
ActivityExecutionContext
executionContext)
1740
ActivityExecutionContext
resurrectedContext = executionContext.ExecutionContextManager.DiscardPersistedExecutionContext(contextInfo);
1987
if (!(provider is
ActivityExecutionContext
))
1992
ActivityExecutionContext
executionContext = provider as
ActivityExecutionContext
;
2039
protected internal override ActivityExecutionStatus HandleFault(
ActivityExecutionContext
executionContext, Exception exception)
2073
protected internal virtual void OnActivityChangeAdd(
ActivityExecutionContext
executionContext, Activity addedActivity)
2084
protected internal virtual void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
2089
protected internal virtual void OnWorkflowChangesCompleted(
ActivityExecutionContext
rootContext)
AuthoringOM\ActivityExecutionContext.cs (7)
44
public static readonly DependencyProperty CurrentExceptionProperty = DependencyProperty.RegisterAttached("CurrentException", typeof(Exception), typeof(
ActivityExecutionContext
), new PropertyMetadata(null, DependencyPropertyOptions.Default, null, EnforceExceptionSemantics, true));
45
internal static readonly DependencyProperty GrantedLocksProperty = DependencyProperty.RegisterAttached("GrantedLocks", typeof(Dictionary<string, GrantedLock>), typeof(
ActivityExecutionContext
));
46
internal static readonly DependencyProperty CachedGrantedLocksProperty = DependencyProperty.RegisterAttached("CachedGrantedLocks", typeof(Dictionary<string, GrantedLock>), typeof(
ActivityExecutionContext
), new PropertyMetadata(DependencyPropertyOptions.NonSerialized));
47
internal static readonly DependencyProperty LockAcquiredCallbackProperty = DependencyProperty.RegisterAttached("LockAcquiredCallback", typeof(ActivityExecutorDelegateInfo<EventArgs>), typeof(
ActivityExecutionContext
));
108
private
ActivityExecutionContext
executionContext = null;
109
internal StartWorkflow(
ActivityExecutionContext
executionContext)
205
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(activity))
AuthoringOM\ActivityExecutionContextCollection.cs (16)
24
private
ActivityExecutionContext
ownerContext = null;
25
private List<
ActivityExecutionContext
> executionContexts = new List<
ActivityExecutionContext
>();
27
internal ActivityExecutionContextManager(
ActivityExecutionContext
ownerContext)
44
public ReadOnlyCollection<
ActivityExecutionContext
> ExecutionContexts
52
return new ReadOnlyCollection<
ActivityExecutionContext
>(this.executionContexts);
56
public
ActivityExecutionContext
CreateExecutionContext(Activity activity)
115
ActivityExecutionContext
newExecutionContext = null;
141
public void CompleteExecutionContext(
ActivityExecutionContext
childContext)
149
public void CompleteExecutionContext(
ActivityExecutionContext
childContext, bool forcePersist)
221
public
ActivityExecutionContext
GetExecutionContext(Activity activity)
232
foreach (
ActivityExecutionContext
context in ExecutionContexts)
268
public
ActivityExecutionContext
GetPersistedExecutionContext(Guid contextGuid)
303
foreach (
ActivityExecutionContext
executionContext in this.ExecutionContexts)
321
internal
ActivityExecutionContext
DiscardPersistedExecutionContext(ActivityExecutionContextInfo contextInfo)
348
ActivityExecutionContext
revokedContext = new ActivityExecutionContext(revokedActivity);
AuthoringOM\ActivityExecutor.cs (17)
14
public abstract ActivityExecutionStatus Execute(Activity activity,
ActivityExecutionContext
executionContext);
15
public abstract ActivityExecutionStatus Cancel(Activity activity,
ActivityExecutionContext
executionContext);
16
public abstract ActivityExecutionStatus HandleFault(Activity activity,
ActivityExecutionContext
executionContext, Exception exception);
17
public abstract ActivityExecutionStatus Compensate(Activity activity,
ActivityExecutionContext
executionContext);
24
public sealed override ActivityExecutionStatus Execute(Activity activity,
ActivityExecutionContext
executionContext)
28
public sealed override ActivityExecutionStatus Cancel(Activity activity,
ActivityExecutionContext
executionContext)
32
public sealed override ActivityExecutionStatus HandleFault(Activity activity,
ActivityExecutionContext
executionContext, Exception exception)
36
public sealed override ActivityExecutionStatus Compensate(Activity activity,
ActivityExecutionContext
executionContext)
43
protected virtual ActivityExecutionStatus Execute(T activity,
ActivityExecutionContext
executionContext)
52
protected virtual ActivityExecutionStatus Cancel(T activity,
ActivityExecutionContext
executionContext)
61
protected virtual ActivityExecutionStatus HandleFault(T activity,
ActivityExecutionContext
executionContext, Exception exception)
70
protected virtual ActivityExecutionStatus Compensate(T activity,
ActivityExecutionContext
executionContext)
89
void ISupportWorkflowChanges.OnActivityAdded(
ActivityExecutionContext
executionContext, Activity addedActivity)
103
void ISupportWorkflowChanges.OnActivityRemoved(
ActivityExecutionContext
executionContext, Activity removedActivity)
117
void ISupportWorkflowChanges.OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
133
protected override ActivityExecutionStatus Execute(T activity,
ActivityExecutionContext
executionContext)
138
protected override ActivityExecutionStatus Cancel(T activity,
ActivityExecutionContext
executionContext)
AuthoringOM\ActivityExecutorDelegateInfo.cs (5)
169
currentContextActivity.WorkflowCoreRuntime.ScheduleItem(delegateOperation,
ActivityExecutionContext
.IsInAtomicTransaction(targetActivity), transacted, !mayInvokeDelegateNow);
180
if (!
ActivityExecutionContext
.IsInAtomicTransaction(currentContextActivity.WorkflowCoreRuntime.CurrentActivity))
196
if (
ActivityExecutionContext
.IsInAtomicTransaction(targetActivity) &&
197
ActivityExecutionContext
.IsInAtomicTransaction(currentContextActivity.WorkflowCoreRuntime.CurrentActivity))
329
using (
ActivityExecutionContext
activityExecutionContext = new ActivityExecutionContext(activity))
AuthoringOM\ActivityExecutorOperation.cs (1)
72
using (
ActivityExecutionContext
activityExecutionContext = new ActivityExecutionContext(activity))
AuthoringOM\ActivityInterfaces.cs (4)
46
void OnActivityAdded(
ActivityExecutionContext
rootContext, Activity addedActivity);
47
void OnActivityRemoved(
ActivityExecutionContext
rootContext, Activity removedActivity);
48
void OnWorkflowChangesCompleted(
ActivityExecutionContext
rootContext);
203
ActivityExecutionStatus Compensate(
ActivityExecutionContext
executionContext);
AuthoringOM\Behaviors\CancellationHandler.cs (4)
37
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
42
protected internal override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
52
protected internal override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
57
protected internal override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
AuthoringOM\Behaviors\CompensatableTransactionScopeActivity.cs (5)
54
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
59
protected internal override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
69
protected internal override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
74
protected internal override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
79
ActivityExecutionStatus ICompensatableActivity.Compensate(
ActivityExecutionContext
executionContext)
AuthoringOM\Behaviors\Compensate.cs (6)
59
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
77
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
95
private ActivityExecutionStatus CompensateTargetActivity(
ActivityExecutionContext
context)
120
foreach (
ActivityExecutionContext
activeContext in contextManager.ExecutionContexts)
139
ActivityExecutionContext
revokedExecutionContext = contextManager.DiscardPersistedExecutionContext(completedActivityInfo);
AuthoringOM\Behaviors\Compensation.cs (4)
38
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
43
protected internal override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
53
protected internal override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
58
protected internal override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
AuthoringOM\Behaviors\ExceptionHandler.cs (4)
80
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
85
protected internal override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
95
protected internal override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
100
protected internal override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
AuthoringOM\Behaviors\ExceptionHandlers.cs (9)
47
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
52
Debug.Assert(this.Parent.GetValue(
ActivityExecutionContext
.CurrentExceptionProperty) != null, "No Exception contained by parent");
54
Exception excep = this.Parent.GetValue(
ActivityExecutionContext
.CurrentExceptionProperty) as Exception;
65
this.Parent.RemoveProperty(
ActivityExecutionContext
.CurrentExceptionProperty);
76
protected internal override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
103
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
114
protected internal override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
128
protected internal override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
AuthoringOM\Behaviors\SynchronizationScope.cs (4)
53
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
58
protected internal override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
68
protected internal override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
73
protected internal override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
AuthoringOM\Behaviors\TransactionScope.cs (4)
56
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
61
protected internal override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
71
protected internal override void OnActivityChangeRemove(
ActivityExecutionContext
executionContext, Activity removedActivity)
76
protected internal override void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
AuthoringOM\Fault.cs (1)
54
protected internal override sealed ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
AuthoringOM\Filters\ActivityExecutionFilter.cs (7)
12
public virtual void OnActivityAdded(
ActivityExecutionContext
executionContext, Activity addedActivity)
21
public virtual void OnActivityRemoved(
ActivityExecutionContext
executionContext, Activity removedActivity)
30
public virtual void OnWorkflowChangesCompleted(
ActivityExecutionContext
executionContext)
41
public override ActivityExecutionStatus Execute(Activity activity,
ActivityExecutionContext
executionContext)
51
public override ActivityExecutionStatus Cancel(Activity activity,
ActivityExecutionContext
executionContext)
68
public override ActivityExecutionStatus HandleFault(Activity activity,
ActivityExecutionContext
executionContext, Exception exception)
85
public override ActivityExecutionStatus Compensate(Activity activity,
ActivityExecutionContext
executionContext)
AuthoringOM\Filters\CompensationHandlingFilter.cs (16)
14
public override ActivityExecutionStatus Compensate(Activity activity,
ActivityExecutionContext
executionContext)
30
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
116
internal static bool TryCompensateLastCompletedChildActivity(
ActivityExecutionContext
context, Activity targetActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs> statusChangeHandler)
132
private static bool TryCompensateLastCompletedChildActivity(
ActivityExecutionContext
context, Activity targetActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs> statusChangeHandler, bool isimmediateCompensation)
193
ActivityExecutionContext
revokedExecutionContext = lastCompensatableTarget.TargetExecutionContextManager.DiscardPersistedExecutionContext(lastCompensatableTarget.TargetExecutionInfo);
235
private static void CompleteRevokedExecutionContext(Activity targetActivity,
ActivityExecutionContext
context)
237
ActivityExecutionContext
[] activeContextsClone = new
ActivityExecutionContext
[context.ExecutionContextManager.ExecutionContexts.Count];
240
foreach (
ActivityExecutionContext
childContext in activeContextsClone)
258
private
ActivityExecutionContext
targetExecutionContext = null;
271
internal CompensationInfo(
ActivityExecutionContext
targetExecutionContext)
280
internal
ActivityExecutionContext
TargetExecutionContext
324
private static bool CollectCompensatableActiveContexts(
ActivityExecutionContext
context, Activity targetActivity, SortedDictionary<int, CompensationInfo> sortedListOfCompensatableTargets, bool immediateCompensation)
328
foreach (
ActivityExecutionContext
activeContext in contextManager.ExecutionContexts)
375
private static void CollectCompensatableCompletedContexts(
ActivityExecutionContext
context, Activity targetActivity, SortedDictionary<int, CompensationInfo> sortedListOfCompensatableTargets, bool immediateCompensation)
AuthoringOM\Filters\FaultHandlingFilter.cs (7)
16
public override ActivityExecutionStatus Execute(Activity activity,
ActivityExecutionContext
executionContext)
30
public override ActivityExecutionStatus HandleFault(Activity activity,
ActivityExecutionContext
executionContext, Exception exception)
68
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
82
context.Activity.GetValue(
ActivityExecutionContext
.CurrentExceptionProperty) != null)
131
if (context.Activity.GetValue(
ActivityExecutionContext
.CurrentExceptionProperty) != null)
152
void SafeReleaseLockOnStatusChange(
ActivityExecutionContext
context)
AuthoringOM\Filters\SynchronizationFilter.cs (6)
20
public override ActivityExecutionStatus Execute(Activity activity,
ActivityExecutionContext
executionContext)
37
private ActivityExecutionStatus ExecuteActivityNow(
ActivityExecutionContext
context)
46
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
62
ActivityExecutionContext
context = (
ActivityExecutionContext
)sender;
AuthoringOM\Filters\TransactionFilter.cs (11)
36
public override ActivityExecutionStatus Execute(Activity activity,
ActivityExecutionContext
executionContext)
56
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
63
Exception exception = (Exception)context.Activity.GetValue(
ActivityExecutionContext
.CurrentExceptionProperty);
111
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
115
context.Activity.SetValueCommon(
ActivityExecutionContext
.CurrentExceptionProperty, args.Exception,
ActivityExecutionContext
.CurrentExceptionProperty.DefaultMetadata, false);
129
ActivityExecutionContext
context = (
ActivityExecutionContext
)sender;
142
private static ActivityExecutionStatus ExecuteActivity(Activity activity,
ActivityExecutionContext
context, bool locksAcquired)
AuthoringOM\ScheduleChanges.cs (2)
368
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(compositeActivity))
407
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(ownerActivity))
AuthoringOM\Sequence.cs (7)
25
public static ActivityExecutionStatus Execute(CompositeActivity activity,
ActivityExecutionContext
executionContext)
38
public static ActivityExecutionStatus Cancel(CompositeActivity activity,
ActivityExecutionContext
executionContext)
67
ActivityExecutionContext
context = sender as
ActivityExecutionContext
;
79
private static bool TryScheduleNextChild(CompositeActivity activity,
ActivityExecutionContext
executionContext)
104
public static void OnActivityChangeRemove(CompositeActivity activity,
ActivityExecutionContext
executionContext, Activity removedActivity)
112
public static void OnWorkflowChangesCompleted(CompositeActivity activity,
ActivityExecutionContext
executionContext)
AuthoringOM\Suspend.cs (1)
53
protected internal override sealed ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
AuthoringOM\Terminate.cs (1)
49
protected internal override sealed ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
System.Workflow.Runtime (13)
DebugEngine\DebugController.cs (5)
923
ActivityExecutionContext
rootExecutionContext = new ActivityExecutionContext(rootActivity);
924
foreach (
ActivityExecutionContext
executionContext in DebugController.WalkExecutionContextTree(rootExecutionContext))
973
private static IEnumerable WalkExecutionContextTree(
ActivityExecutionContext
rootContext)
980
foreach (
ActivityExecutionContext
executionContext in rootContext.ExecutionContextManager.ExecutionContexts)
982
foreach (
ActivityExecutionContext
nestedContext in WalkExecutionContextTree(executionContext))
System\Activities\Statements\InteropExecutor.cs (4)
310
using (
ActivityExecutionContext
activityExecutionContext = new ActivityExecutionContext(this.rootActivity, true))
320
using (
ActivityExecutionContext
activityExecutionContext = new ActivityExecutionContext(this.rootActivity, true))
354
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(this.rootActivity, true))
682
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(activity, true))
WorkflowExecutor.cs (3)
222
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(this.rootActivity, true))
577
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(this.rootActivity, true))
2587
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(currentActivity, true))
WorkflowStateRollbackService.cs (1)
106
using (
ActivityExecutionContext
executionContext = new ActivityExecutionContext(activity))
System.WorkflowServices (15)
System\Workflow\Activities\ReceiveActivity.cs (13)
432
ActivityExecutionContext
executionContext = sender as
ActivityExecutionContext
;
438
typeof(
ActivityExecutionContext
))));
534
void IEventActivity.Subscribe(
ActivityExecutionContext
parentContext,
580
void IEventActivity.Unsubscribe(
ActivityExecutionContext
parentContext,
811
protected override ActivityExecutionStatus Cancel(
ActivityExecutionContext
executionContext)
856
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
976
protected override ActivityExecutionStatus HandleFault(
ActivityExecutionContext
executionContext,
1109
protected override void OnSequenceComplete(
ActivityExecutionContext
executionContext)
1243
ActivityExecutionContext
executionContext)
1625
ActivityExecutionContext
executionContext = sender as
ActivityExecutionContext
;
1629
new ArgumentException(SR2.GetString(SR2.Error_ArgumentTypeInvalid, "sender", typeof(
ActivityExecutionContext
))));
System\Workflow\Activities\SendActivity.cs (1)
368
protected internal override ActivityExecutionStatus Execute(
ActivityExecutionContext
executionContext)
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (1)
208
internal static ChannelTicket Take(
ActivityExecutionContext
executionContext, Guid workflowId, LogicalChannel logicalChannel)