public void Bind(BehaviorBuilder <TInstance> builder)
        {
            var thenBehavior = GetBehavior(_thenActivities);
            var elseBehavior = GetBehavior(_elseActivities);

            var conditionActivity = new ConditionActivity <TInstance>(_condition, thenBehavior, elseBehavior);

            builder.Add(conditionActivity);
        }
        public void Bind(BehaviorBuilder <TInstance> builder)
        {
            var stateBuilder = new ActivityBehaviorBuilder <TInstance>();

            foreach (var activity in _activities.GetStateActivityBinders())
            {
                activity.Bind(stateBuilder);
            }

            var conditionActivity = new ConditionActivity <TInstance>(_condition, stateBuilder.Behavior);

            builder.Add(conditionActivity);
        }
Example #3
0
 public void Bind(BehaviorBuilder <TInstance> builder)
 {
     builder.Add(_activity);
 }