Currently, I have 2 windows services that i would like them to be sh开发者_C百科aring from a single app.config file.
How i can tell ConfigurationManager class to load settings from a single file that would be shared by 2 services?
With ConfigurationManager.Appsettings[""] requires, each service needs to have its own config file. It would be nice if the user can just configure one file instead of 2 files with similar settings.
Cheers
<appSettings configSource="appSettings.shared.config"/>
http://sunali.com/2008/01/23/configsource-property-dividing-configuration-files-into-pieces/
精彩评论