I have verified that the FileSystemWatcher is doing what I want it to do. The Changed event is in fact firing when I, for example, modify the .config file via notepad.
In the Changed event handler, I execute:
but subsequent access to an appSettings key gives me the original (presumably cached) value. I was expecting that RefreshSection would invalidate or otherwise clear the cache so the new modified value gets picked up, but that doesn't seem to be happening. After the event fires, subsequent access via:
returns the original value, before the update.
FileSystemWatcher isn't my problem, I think. ConfigurationManager apparently is...