예제 #1
0
        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),
            };
        }
예제 #2
0
        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),
            };
        }