Ejemplo n.º 1
0
        public DelegateAction(DelegateActionDelegate action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            this.condition = new DelegateConditionDelegate((trigger) => true);
            this.action    = action;
        }
Ejemplo n.º 2
0
        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;
        }