Is there a way (an event would be a better option) that will notice my code that changed the application settings?
Exactly I'm trying to implement a Windows service in which the administrator has to change the online behavior without restarting the service.
I was thinking about FileSystemWatcher , but in this option I will have to hard-code the path and name in the configuration file, so maybe there is another way to do this?
UPDATE
Below are the answers to using AppDomain.CurrentDomain.SetupInformation.ConfigurationFile , but this option will not work if I have an external configuration file like this:
<configuration> <appSettings configSource="appsettings.config"/> </configuration>
source share