Configuration file watcher thread in version 5

Topics: Building and extending application blocks, Enterprise Library Core, General discussion
Jul 17, 2012 at 11:02 AM


I'd like to deactivate the configuration file watcher thread because I don't need it and it takes some memory.

In version 5 the FileConfigurationSource.ResetImplementation has vanished.

Maybe this is possible through configuration ?

Any idea is welcome.


Jul 18, 2012 at 3:43 AM

If you are setting up the configuration source using the configuration file it looks like watching is enabled by default.  I don't see a way of disabling it short of adding that functionality to the FileConfigurationSourceElement configuration class.

If you are instantiating a FileConfigurationSource you can specify whether to watch or not via the constructor.

Randy Levy
Enterprise Library support engineer