Config file interpreter for Silverlight version of Windsor Container
Silverlight version of Windsor container does not provide XmlInterpreter() for reading bindings from config file. Could someone sugge开发者_高级运维st how can I implement my own interpreter?
The online document suggest reading a configuration file, creating an instance of IConfiguration and registering them into IConfigurationStore.
How and where can I do this?
This feature is not available in Silverlight version of Windsor because Silverlight lacks System.Xml
API that Windsor uses.
There's a ticket for that in Castle's Issue tracker along with patch (I'm afraid outdated) for implementing this feature using LINQ to Xml.
This can give you some ideas. If you want to update it and make it pass all the tests, and perform well we can include it in the upcoming release of Windsor (2.5).
精彩评论