34 references to CompensationState
System.Activities (34)
System\Activities\Statements\CompensableActivity.cs (12)
351
CompensationState =
CompensationState
.Active,
375
tokenData.CompensationState =
CompensationState
.Completed;
395
token.CompensationState =
CompensationState
.Completed;
403
token.CompensationState =
CompensationState
.Compensating;
409
token.CompensationState =
CompensationState
.Canceling;
437
if (Result != null && token.CompensationState ==
CompensationState
.Completed)
460
if (compensationToken.CompensationState ==
CompensationState
.Canceling)
467
else if (compensationToken.CompensationState ==
CompensationState
.Compensating)
488
case
CompensationState
.Canceling:
489
compensationToken.CompensationState =
CompensationState
.Canceled;
491
case
CompensationState
.Compensating:
492
compensationToken.CompensationState =
CompensationState
.Compensated;
System\Activities\Statements\Compensate.cs (2)
214
if (tokenData == null || tokenData.CompensationState !=
CompensationState
.Completed)
220
tokenData.CompensationState =
CompensationState
.Compensating;
System\Activities\Statements\CompensationParticipant.cs (11)
165
Fx.Assert(compensationToken.CompensationState ==
CompensationState
.Confirming, "CompensationState should be in Confirming state");
206
Fx.Assert(compensationToken.CompensationState ==
CompensationState
.Confirming, "CompensationParticipant should be in Confirming State");
248
Fx.Assert(compensationToken.CompensationState ==
CompensationState
.Compensating, "CompensationState should be in Compensating state");
290
Fx.Assert(compensationToken.CompensationState ==
CompensationState
.Compensating, "CompensationParticipant should be in Compensating State");
315
Fx.Assert(compensationToken.CompensationState ==
CompensationState
.Canceling, "CompensationState should be in Canceling state");
354
Fx.Assert(compensationToken.CompensationState ==
CompensationState
.Canceling, "CompensationParticipant should be in Canceling State");
383
case
CompensationState
.Canceling:
386
case
CompensationState
.Compensating:
407
case
CompensationState
.Confirming:
410
case
CompensationState
.Compensating:
413
case
CompensationState
.Canceling:
System\Activities\Statements\CompensationTokenData.cs (3)
24
this.CompensationState =
CompensationState
.Creating;
55
[DefaultValue(
CompensationState
.Active)]
57
internal
CompensationState
CompensationState
System\Activities\Statements\Confirm.cs (2)
223
if (tokenData == null || tokenData.CompensationState !=
CompensationState
.Completed)
229
tokenData.CompensationState =
CompensationState
.Confirming;
System\Activities\Statements\InternalCompensate.cs (2)
54
tokenData.CompensationState =
CompensationState
.Compensating;
70
tokenData.CompensationState =
CompensationState
.Compensated;
System\Activities\Statements\InternalConfirm.cs (2)
54
tokenData.CompensationState =
CompensationState
.Confirming;
71
tokenData.CompensationState =
CompensationState
.Confirmed;