Пример #1
0
        public IObjectProcessor ProcessorForObject(string anObject, string style = "")
        {
            IObjectProcessor processor = (ObjectProcessors.Where(m => m.Name == anObject)).FirstOrDefault();

            if (processor == null)
            {
                processor = new DumbObjectProcessor();
            }
            return(processor);
        }
Пример #2
0
        public string processObject(XElement item, string processor, object options = null)
        {
            IObjectProcessor objectProcessor = ProcessorForObject(processor, "");

            return(objectProcessor.ProcessObject(item, options));
        }