Пример #1
0
        private void parseConfig()
        {
            TransformerPool = new TransformerPool();
            TagPool = new TagPool();

            var rootNode = _configFile.Element("transformers");
            if (rootNode == null) throw new ConfigFileCorruptException("<transformers> node missing");

            foreach (var node in rootNode.Descendants())
            {
                var transformerParams = new TransformerParams(node);
                var transformer = createTransformer(transformerParams);
                var tag = transformer.Tag;
                TransformerPool.Add(transformer);
                TagPool.Add(tag);
            }
        }