12 instantiations of CompensationToken
System.Activities (12)
System\Activities\Statements\CompensableActivity.cs (1)
354
CompensationToken token = new
CompensationToken
(tokenData);
System\Activities\Statements\CompensationParticipant.cs (7)
131
CompensationToken token = new
CompensationToken
(compensationToken);
181
this.currentCompensationToken.Set(context, new
CompensationToken
(compensationToken));
208
this.currentCompensationToken.Set(context, new
CompensationToken
(compensationToken));
265
this.currentCompensationToken.Set(context, new
CompensationToken
(compensationToken));
292
this.currentCompensationToken.Set(context, new
CompensationToken
(compensationToken));
326
this.currentCompensationToken.Set(context, new
CompensationToken
(compensationToken));
356
this.currentCompensationToken.Set(context, new
CompensationToken
(compensationToken));
System\Activities\Statements\DefaultCompensation.cs (1)
80
this.toCompensateToken.Set(context, new
CompensationToken
(tokenData.ExecutionTracker.Get()));
System\Activities\Statements\DefaultConfirmation.cs (1)
76
this.toConfirmToken.Set(context, new
CompensationToken
(tokenData.ExecutionTracker.Get()));
System\Activities\Statements\WorkflowCompensationBehavior.cs (2)
101
context.ResumeBookmark(compensationExtension.WorkflowConfirmation, new
CompensationToken
(rootHandle));
105
context.ResumeBookmark(compensationExtension.WorkflowCompensation, new
CompensationToken
(rootHandle));
81 references to CompensationToken
System.Activities (81)
System\Activities\Statements\CompensableActivity.cs (13)
19
public sealed class CompensableActivity : NativeActivity<
CompensationToken
>
28
Variable<
CompensationToken
> currentCompensationToken;
36
this.currentCompensationToken = new Variable<
CompensationToken
>();
334
CompensationToken
parentToken = null;
335
long parentCompensationId =
CompensationToken
.RootCompensationId;
337
parentToken = (
CompensationToken
)context.Properties.Find(
CompensationToken
.PropertyName);
354
CompensationToken
token = new CompensationToken(tokenData);
356
context.Properties.Add(
CompensationToken
.PropertyName, token);
421
if (token.ParentCompensationId !=
CompensationToken
.RootCompensationId)
430
CompensationTokenData parentToken = compensationExtension.Get(
CompensationToken
.RootCompensationId);
514
if (compensationToken.ParentCompensationId !=
CompensationToken
.RootCompensationId)
524
CompensationTokenData parentToken = compensationExtension.Get(
CompensationToken
.RootCompensationId);
System\Activities\Statements\Compensate.cs (11)
22
Variable<
CompensationToken
> currentCompensationToken;
27
this.currentCompensationToken = new Variable<
CompensationToken
>();
31
public InArgument<
CompensationToken
> Target
45
Target = new InArgument<
CompensationToken
>(this.currentCompensationToken),
61
Target = new InArgument<
CompensationToken
>(new ArgumentValue<
CompensationToken
> { ArgumentName = "Target" }),
71
RuntimeArgument targetArgument = new RuntimeArgument("Target", typeof(
CompensationToken
), ArgumentDirection.In);
182
CompensationToken
ambientCompensationToken = (
CompensationToken
)context.Properties.Find(
CompensationToken
.PropertyName);
200
CompensationToken
compensationToken = Target.Get(context);
System\Activities\Statements\CompensationExtension.cs (3)
116
this.Add(
CompensationToken
.RootCompensationId, new CompensationTokenData(
CompensationToken
.RootCompensationId,
CompensationToken
.RootCompensationId));
System\Activities\Statements\CompensationParticipant.cs (10)
16
Variable<
CompensationToken
> currentCompensationToken;
23
this.currentCompensationToken = new Variable<
CompensationToken
>();
27
Target = new InArgument<
CompensationToken
>(this.currentCompensationToken),
32
Target = new InArgument<
CompensationToken
>(this.currentCompensationToken),
126
Fx.Assert(compensationId !=
CompensationToken
.RootCompensationId, "CompensationId passed to the SecondaryRoot must be valid");
131
CompensationToken
token = new CompensationToken(compensationToken);
135
context.Properties.Add(
CompensationToken
.PropertyName, token);
160
Fx.Assert(compensationId !=
CompensationToken
.RootCompensationId, "CompensationId must be passed when resuming the Completed bookmark");
243
Fx.Assert(compensationId !=
CompensationToken
.RootCompensationId, "CompensationId must be passed when resuming the Completed bookmark");
310
Fx.Assert(compensationId !=
CompensationToken
.RootCompensationId, "CompensationId must be passed when resuming the Completed bookmark");
System\Activities\Statements\Confirm.cs (11)
22
Variable<
CompensationToken
> currentCompensationToken;
27
this.currentCompensationToken = new Variable<
CompensationToken
>();
30
public InArgument<
CompensationToken
> Target
44
Target = new InArgument<
CompensationToken
>(this.currentCompensationToken),
60
Target = new InArgument<
CompensationToken
>(new ArgumentValue<
CompensationToken
> { ArgumentName = "Target" }),
70
RuntimeArgument targetArgument = new RuntimeArgument("Target", typeof(
CompensationToken
), ArgumentDirection.In);
191
CompensationToken
ambientCompensationToken = (
CompensationToken
)context.Properties.Find(
CompensationToken
.PropertyName);
209
CompensationToken
compensationToken = Target.Get(context);
System\Activities\Statements\DefaultCompensation.cs (6)
16
Variable<
CompensationToken
> toCompensateToken;
23
this.toCompensateToken = new Variable<
CompensationToken
>();
27
Target = new InArgument<
CompensationToken
>(toCompensateToken),
31
public InArgument<
CompensationToken
> Target
44
RuntimeArgument targetArgument = new RuntimeArgument("Target", typeof(
CompensationToken
), ArgumentDirection.In);
68
CompensationToken
token = Target.Get(context);
System\Activities\Statements\DefaultConfirmation.cs (6)
14
Variable<
CompensationToken
> toConfirmToken;
20
this.toConfirmToken = new Variable<
CompensationToken
>();
24
Target = new InArgument<
CompensationToken
>(toConfirmToken),
28
public InArgument<
CompensationToken
> Target
41
RuntimeArgument targetArgument = new RuntimeArgument("Target", typeof(
CompensationToken
), ArgumentDirection.In);
64
CompensationToken
token = Target.Get(context);
System\Activities\Statements\InternalCompensate.cs (6)
18
public InArgument<
CompensationToken
> Target
34
RuntimeArgument targetArgument = new RuntimeArgument("Target", typeof(
CompensationToken
), ArgumentDirection.In);
44
CompensationToken
compensationToken = Target.Get(context);
64
CompensationToken
compensationToken = Target.Get(context);
77
if (tokenData.ParentCompensationId !=
CompensationToken
.RootCompensationId)
87
CompensationTokenData parentToken = compensationExtension.Get(
CompensationToken
.RootCompensationId);
System\Activities\Statements\InternalConfirm.cs (6)
18
public InArgument<
CompensationToken
> Target
34
RuntimeArgument targetArgument = new RuntimeArgument("Target", typeof(
CompensationToken
), ArgumentDirection.In);
44
CompensationToken
compensationToken = Target.Get(context);
64
CompensationToken
compensationToken = Target.Get(context);
78
if (tokenData.ParentCompensationId !=
CompensationToken
.RootCompensationId)
88
CompensationTokenData parentToken = compensationExtension.Get(
CompensationToken
.RootCompensationId);
System\Activities\Statements\WorkflowCompensationBehavior.cs (9)
14
Variable<
CompensationToken
> currentCompensationToken;
19
currentCompensationToken = new Variable<
CompensationToken
>
26
Target = new InArgument<
CompensationToken
>(this.currentCompensationToken),
31
Target = new InArgument<
CompensationToken
>(this.currentCompensationToken),
94
CompensationTokenData rootHandle = compensationExtension.Get(
CompensationToken
.RootCompensationId);
121
CompensationToken
rootToken = (
CompensationToken
)value;
151
CompensationToken
rootToken = (
CompensationToken
)value;