I have a plugin architecture solution written in .NET C # 3.5, where each plugin is an assembly loaded by the main project.
Each plugin can optionally use a web service, so I would like to have the configuration of this plugin in my own plugin.dll.config file instead of having it in the app.config of the main project.
I look around and I saw that I can load my own configuration file from each class:
System.Configuration.Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap,userLevel)
I see how this will help me get the basic settings from the appSettings section, but I see no way to read the web service information stored in the plugin.dll.config file.
Any help on how to approach this situation is very welcome.
source
share