Skip to main content

Cancellation Scope

Associates the main execution path with a cancellation handler. The Cancellation Scope has two parts, Body and Cancellation Handler. Activities in the Body can be cancelled as long as they are not completed.

When a cancellation request is planned and activities in the Body are not completed, the Cancellation Scope will be marked as Cancelled and the activities in the Cancellation Handler will be executed.

Input

  • Body: Contains the activity that represents the main execution path. This is the activity that will need to be cancelled later.
    • Type: System.Activities.Statements.Activity
  • Cancellation Handler: Contains the activity to be executed in case of cancellation.
    • Type: System.Activities.Statements.Activity