Castle Windsor Add Components From XML

molokolillana

New Member
I'm using Castle Windsor in project and currently faced problem with configurations files, there are to many of them, and they are messed up. So I've decided to structurize them.
I wand to initialize windsor factory with one main xml file, and depending on it's content register remaining components also from xml file.
I wonder if there is opportunity to register components after the factory is initialized from xml config files.Smth like this:\[code\]ComponentFactory.Initialize(Configuration.FromXmlFile("Main.xml"));var config = ComponentsFactory.Resolve<MainConf>();foreach(var xml in config.XMLList){ ComponentFactory.RegisterFromXML(xml)}\[/code\]
 
Back
Top