Currently I have a Windows Service which constantly monitors 4 folders. I have used FileSystemWatchers to monitor folders.
But everytime a new folder is added, I have to uninstall the service add a new filesystemwatcher and then install the service.
I am thinking to make it dynamic or db driven where I dont not have to uninstall and re-install the service every time the program needs to monitor a new folder.
How can I achieve this?
Thanks in advance.
Here you have a demo that uses XML with Linq2XML and has the check over the config file change:
This is the config.xml: