I have a lot of castle xml configs where properties like connectionstring are also held under .Net configuration sections.
I'd like to be able to read out the properties using the container but can't see a mechanism to do it.
ie
<castle>
<configuration>
<properties>
<connectionString>Data Source=MyServer;Initial Catalog=YadaYada;User ID=me;Password=IAmGod</connectionString>
</properties>
<components>
...
Obviously the properties are there as there are component dependencies on them. I can resolve the components but not the properties.
Sure I could new up a component just to read out the property castle injected it, or I could wrap all the properties in a component specialised simply to hold name/val pairs. But I would have thought there be a simple container.resolve("property.connectionstring") notation.
*Edit Not very good with markdown, above was meant to be a xml section.