public DelegateAction(DelegateActionDelegate action) { if (action == null) { throw new ArgumentNullException("action"); } this.condition = new DelegateConditionDelegate((trigger) => true); this.action = action; }
public DelegateAction(DelegateConditionDelegate condition, DelegateActionDelegate action) { if (condition == null) { throw new ArgumentNullException("condition"); } if (action == null) { throw new ArgumentNullException("action"); } this.condition = condition; this.action = action; }