ICompensatableActivity.Compensate(ActivityExecutionContext) 方法
定义
由工作流运行时调用,用于补偿处于关闭状态的活动。Called by the workflow runtime to compensate an activity that is in the Closed state. 活动的 Succeeded 属性的值必须为 ExecutionResult,这样才能对其进行补偿。The activity must have a value of Succeeded for its ExecutionResult property in order to be compensatable.
public:
System::Workflow::ComponentModel::ActivityExecutionStatus Compensate(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext);
public System.Workflow.ComponentModel.ActivityExecutionStatus Compensate (System.Workflow.ComponentModel.ActivityExecutionContext executionContext);
abstract member Compensate : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
Public Function Compensate (executionContext As ActivityExecutionContext) As ActivityExecutionStatus
参数
- executionContext
- ActivityExecutionContext
针对操作的 ActivityExecutionContext。The ActivityExecutionContext for the operation.
返回
尝试操作之后的 ActivityExecutionStatus。The ActivityExecutionStatus after operation has been tried.