public CompensationParticipant(Variable <long> compensationId) : base() { _compensationId = compensationId; _currentCompensationToken = new Variable <CompensationToken>(); DefaultCompensation = new DefaultCompensation() { Target = new InArgument <CompensationToken>(_currentCompensationToken), }; DefaultConfirmation = new DefaultConfirmation() { Target = new InArgument <CompensationToken>(_currentCompensationToken), }; }
public WorkflowCompensationBehavior() : base() { _currentCompensationToken = new Variable <CompensationToken> { Name = "currentCompensationToken", }; DefaultCompensation = new DefaultCompensation() { Target = new InArgument <CompensationToken>(_currentCompensationToken), }; DefaultConfirmation = new DefaultConfirmation() { Target = new InArgument <CompensationToken>(_currentCompensationToken), }; }