public CompensationParticipant(Variable <long> compensationId)
 {
     this.compensationId           = compensationId;
     this.currentCompensationToken = new Variable <CompensationToken>();
     System.Activities.Statements.DefaultCompensation compensation = new System.Activities.Statements.DefaultCompensation {
         Target = new InArgument <CompensationToken>(this.currentCompensationToken)
     };
     this.DefaultCompensation = compensation;
     System.Activities.Statements.DefaultConfirmation confirmation = new System.Activities.Statements.DefaultConfirmation {
         Target = new InArgument <CompensationToken>(this.currentCompensationToken)
     };
     this.DefaultConfirmation = confirmation;
 }
 public WorkflowCompensationBehavior()
 {
     Variable<CompensationToken> variable = new Variable<CompensationToken> {
         Name = "currentCompensationToken"
     };
     this.currentCompensationToken = variable;
     System.Activities.Statements.DefaultCompensation compensation = new System.Activities.Statements.DefaultCompensation {
         Target = new InArgument<CompensationToken>(this.currentCompensationToken)
     };
     this.DefaultCompensation = compensation;
     System.Activities.Statements.DefaultConfirmation confirmation = new System.Activities.Statements.DefaultConfirmation {
         Target = new InArgument<CompensationToken>(this.currentCompensationToken)
     };
     this.DefaultConfirmation = confirmation;
 }
        public WorkflowCompensationBehavior()
        {
            Variable <CompensationToken> variable = new Variable <CompensationToken> {
                Name = "currentCompensationToken"
            };

            this.currentCompensationToken = variable;
            System.Activities.Statements.DefaultCompensation compensation = new System.Activities.Statements.DefaultCompensation {
                Target = new InArgument <CompensationToken>(this.currentCompensationToken)
            };
            this.DefaultCompensation = compensation;
            System.Activities.Statements.DefaultConfirmation confirmation = new System.Activities.Statements.DefaultConfirmation {
                Target = new InArgument <CompensationToken>(this.currentCompensationToken)
            };
            this.DefaultConfirmation = confirmation;
        }