Ejemplo n.º 1
0
        public ISource CreateObject(params object[] args)
        {
            var source = new CompositeSource();

            source.Add(input => input.IsPost, CalcSource);
            source.Add(input => !input.IsPost, new MakeConditionSource());

            return(source);
        }
Ejemplo n.º 2
0
        public ISource CreateObject(params object[] args)
        {
            CompositeSource source = CreateSource();

            if (Items != null)
            {
                foreach (var item in Items)
                {
                    source.Add(item.Condition.UseCondition, item.Source);
                }
            }

            return(source);
        }