I want to be able to use the following setup in my app/web.config files:
<listeners>
<listener type="a">
<parameter name="a", value="2" />
<parameter name="b", value="20" />
</listener>
<listener type="b">
<parameter name="a", value="2" />
<parameter name="b", value="20" />
<parameter name="c", value="200" />
</listener>
...
</listeners>
Basically, I want to represent a collection of listeners, where each listener has several attributes as well as a collection of parameters. I've managed to model the listener element as a ConfigurationSection with the parameters as ConfigurationElements. However, I can't find an example of how to create the outer collection of listeners. What do I need to do to model this?
I tried making listeners a ConfigurationSectionGroup but this failed at runtime because it seems like the group can't have multiple sections of the same name.