Compartilhar via


CompensatableTransactionScopeActivity.ICompensatableActivity.Compensate Método

Definição

Chamado pelo runtime de fluxo de trabalho para compensar uma atividade que está no estado Closed. A atividade deve ter um valor de Succeeded para sua propriedade ExecutionResult para ser compensável.

 virtual System::Workflow::ComponentModel::ActivityExecutionStatus System.Workflow.ComponentModel.ICompensatableActivity.Compensate(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext) = System::Workflow::ComponentModel::ICompensatableActivity::Compensate;
System.Workflow.ComponentModel.ActivityExecutionStatus ICompensatableActivity.Compensate (System.Workflow.ComponentModel.ActivityExecutionContext executionContext);
abstract member System.Workflow.ComponentModel.ICompensatableActivity.Compensate : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
override this.System.Workflow.ComponentModel.ICompensatableActivity.Compensate : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
Function Compensate (executionContext As ActivityExecutionContext) As ActivityExecutionStatus Implements ICompensatableActivity.Compensate

Parâmetros

executionContext
ActivityExecutionContext

A ActivityExecutionContext para a operação.

Retornos

ActivityExecutionStatus

O ActivityExecutionStatus depois que a operação foi tentada.

Implementações

Aplica-se a