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); }
public void Bind(BehaviorBuilder <TInstance> builder) { builder.Add(_activity); }