2 implementations of ICompensatableActivity
System.Workflow.Activities (1)
CompensatableSequenceActivity.cs (1)
26
public sealed class CompensatableSequenceActivity : SequenceActivity,
ICompensatableActivity
System.Workflow.ComponentModel (1)
AuthoringOM\Behaviors\CompensatableTransactionScopeActivity.cs (1)
22
public sealed class CompensatableTransactionScopeActivity : CompositeActivity, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>,
ICompensatableActivity
27 references to ICompensatableActivity
System.Workflow.Activities (1)
CompensatableSequenceActivity.cs (1)
42
ActivityExecutionStatus
ICompensatableActivity
.Compensate(ActivityExecutionContext executionContext)
System.Workflow.ComponentModel (20)
AuthoringOM\Activity.cs (4)
1559
(this.ExecutionResult == ActivityExecutionResult.Succeeded && (this is
ICompensatableActivity
|| this.PersistOnClose))
1578
if (this.parent != null && (this is
ICompensatableActivity
))
1638
if (this.parent != null && (this is
ICompensatableActivity
))
1786
if (completedChild is
ICompensatableActivity
&&
AuthoringOM\ActivityExecutor.cs (2)
77
System.Diagnostics.Debug.Assert(activity is
ICompensatableActivity
, "should not get Compensate, if activity is not compensatable");
78
return ((
ICompensatableActivity
)activity).Compensate(executionContext);
AuthoringOM\Behaviors\CompensatableTransactionScopeActivity.cs (1)
79
ActivityExecutionStatus
ICompensatableActivity
.Compensate(ActivityExecutionContext executionContext)
AuthoringOM\Behaviors\Compensate.cs (3)
105
if (targetActivity is
ICompensatableActivity
&&
140
if (revokedExecutionContext.Activity is
ICompensatableActivity
)
189
if (activity is
ICompensatableActivity
)
AuthoringOM\Behaviors\Compensation.cs (1)
75
if (!(compensation.Parent is
ICompensatableActivity
))
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (2)
62
if (nestedEnabledActivity is
ICompensatableActivity
)
113
if (childActivity is
ICompensatableActivity
)
AuthoringOM\ComponentFactoryHelpers.cs (1)
34
if (activity is
ICompensatableActivity
)
AuthoringOM\Design\SecondaryViewProvider.cs (1)
67
(designer.Activity is
ICompensatableActivity
&& typeof(CompositeActivity).IsAssignableFrom(activityType) &&
AuthoringOM\Filters\CompensationHandlingFilter.cs (5)
185
if (lastCompensatableTarget.TargetActivity != null && lastCompensatableTarget.TargetActivity is
ICompensatableActivity
)
196
if (revokedExecutionContext.Activity is
ICompensatableActivity
)
310
if (completedChild is
ICompensatableActivity
&& completedChild.ExecutionStatus == ActivityExecutionStatus.Closed && completedChild.ExecutionResult == ActivityExecutionResult.Succeeded)
336
if (activeContext.Activity is
ICompensatableActivity
&& (activeContext.Activity.ExecutionStatus == ActivityExecutionStatus.Compensating || activeContext.Activity.ExecutionStatus == ActivityExecutionStatus.Faulting || activeContext.Activity.ExecutionStatus == ActivityExecutionStatus.Canceling))
401
if (completedChild is
ICompensatableActivity
&& completedChild.ExecutionStatus == ActivityExecutionStatus.Closed && completedChild.ExecutionResult == ActivityExecutionResult.Succeeded)
System.Workflow.Runtime (6)
System\Activities\Statements\Interop.cs (2)
1374
else if (interopBodyType == typeof(System.Workflow.ComponentModel.
ICompensatableActivity
))
1443
else if (activity is System.Workflow.ComponentModel.
ICompensatableActivity
)
System\Activities\Statements\InteropExecutor.cs (2)
547
if (!(activity is
ICompensatableActivity
) || ((activity is
ICompensatableActivity
) && activity.CanUninitializeNow))
WorkflowExecutor.cs (2)
3006
if (!(activity is
ICompensatableActivity
) || ((activity is
ICompensatableActivity
) && activity.CanUninitializeNow))