This example illustrates
Compensableactivity compensation Container
Compensation allows the user to designate corrective action to be taken on activities that occur after successful completion of physical activity
Compensableactivity compensation Container
Class name |
System.Activities.Statements.CompensableActivity |
File |
System.Activities.dll |
Structure description |
Inherit nativeactivity<compensationtoken> is a sealed class Override [CacheMetadata method] and [Execute method] and [Cancel] Override [Caninduceidle Property] The [Variables] property is of type [Collection<variable>] The type of the [body] property is [activity] The [Cancellationhandler] property is of type [activity] The [Compensationhandler] property is of type [activity] The [Confirmationhandler] property is of type [activity] The return value is System.Activities.Statements.CompensationToken |
Function description |
You can define variables in [compensableactivity] [Compensableactivity] is a compensation container, in [compensableactivity] the following four containers [Body] container, subject [Cancellationhandler] container, called when the [Cancel] behavior is generated [Compensationhandler] container, called when an explicit call to [compensate] or process exception completes [Confirmationhandler] container, called when [Confirm] is explicitly invoked or when the process completes normally |