Note that there are some explanatory texts on larger screens.

plurals
  1. POretrieve all configuration settings that are loaded by the configuration manager
    text
    copied!<p>Is there any way to enumerate through all settings to get the values that have been loaded by the configuration manager? Maybe I'm being dense here, but I can't find a way to enumerate through the settings that are contained within a section group.</p> <p>I have a WCF service which is a designed to allow the calling system to pass in request objects which define the operation to be performed on the server. The service loads assemblies dynamically at runtime (like a plug-in model) and determines which object can answer the request. I am looking for a way that I can send a request to "give me all your config info", and the service can return the loaded information. I'm interested in what has been loaded into memory and is being used vs. what values are specified in the actual config file (the config can be replaced without affected anything in memory until a restart).</p> <p>There's a SettingLoaded event that I might be able to use to keep track of them, but this seems far-fetched.</p> <p>Any ideas?</p> <p>[UPDATE] The main purpose for this question is that I need a way to determine the difference between the settings contains within an assemblies physical .config file vs the setting that are compiled into the assembly as part of the "default" config.</p> <p>I can't just use the physical config file as the starting point for the comparison, because there may not be a config file present, or the config file may only provide one of the values, causing the others to use their default value.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload