We all know that the change is the .NET web application. The web.config file restarts the application and forces it to read the updated configuration. How do you do this with a console or WinForms application? Thanks:)
You may need a FileSystemWatcher to monitor the file and handle the corresponding event. The System.Configuration.ConfigManager class may have appropriate methods for reloading (a method call or some of them). I do not have VS in front of me, but I would say that there are probably some hooks there.
FileSystemWatcher , .
ConfigurationManager.RefreshSection, .
. FileSystemWatcher, DarkwingDuck, .
FileSystemWatcher .:
MyGeneratedSettingsFile.Default.Reload();
log4net *.config. , , FileSystemWatcher, *.config.
; FileSystemWatcher - .
, .
, SQL Server , , SQL Server, .
, , Oracle? , , - .
, , . , , .
IoC, - .
, , , - , , .
, , , , , .
.NET Framework 2 , . , , Save(),
My.Settings.UpdateInterval = 10 My.Settings.Save()
If the parameter is the application area, then FileSystemWatcher may be a way