Ejemplo n.º 1
0
        public object BuildItem(BuildItemArgs args)
        {
            var doozer = (IDoozer)addIn.CreateObject(className);

            if (doozer == null)
            {
                return(null);
            }
            addIn.AddInTree.Doozers[name] = doozer;
            return(doozer.BuildItem(args));
        }
Ejemplo n.º 2
0
        public bool IsValid(object parameter, Condition condition)
        {
            var evaluator = (IConditionEvaluator)addIn.CreateObject(className);

            if (evaluator == null)
            {
                return(false);
            }
            addIn.AddInTree.ConditionEvaluators[name] = evaluator;
            return(evaluator.IsValid(parameter, condition));
        }