protected override void Execute(NativeActivityContext context)
        {
            CompensationExtension compensationExtension = context.GetExtension <CompensationExtension>();

            if (compensationExtension.IsWorkflowCompensationBehaviorScheduled)
            {
                this.ScheduleBody(context, compensationExtension);
            }
            else
            {
                compensationExtension.SetupWorkflowCompensationBehavior(context, new BookmarkCallback(this.OnWorkflowCompensationBehaviorScheduled), base.GetSingletonActivity("Activities.Compensation.WorkflowImplicitCompensationBehavior"));
            }
        }
Exemplo n.º 2
0
        protected override void Execute(NativeActivityContext context)
        {
            CompensationExtension compensationExtension = context.GetExtension <CompensationExtension>();

            Fx.Assert(compensationExtension != null, "CompensationExtension must be valid");

            if (compensationExtension.IsWorkflowCompensationBehaviorScheduled)
            {
                ScheduleBody(context, compensationExtension);
            }
            else
            {
                compensationExtension.SetupWorkflowCompensationBehavior(context, new BookmarkCallback(OnWorkflowCompensationBehaviorScheduled), GetSingletonActivity(CompensationActivityStrings.WorkflowImplicitCompensationBehavior));
            }
        }