title: Multiple Configurable FileSystemWatcher methods
body: <p>In the past I have created Windows Services which monitor one directory where the path is configurable by referencing a config file like this:</p>
  
  <pre><code>fileSystemWatcher1.Path = ConfigurationManager.AppSettings["WatchPath1"];
  </code></pre>
  
  <p>I've also watched multiple configurable paths by defining multiple fileSystemWatcher methods.</p>
  
  <pre><code>        fileSystemWatcher1.Path = ConfigurationManager.AppSettings["WatchPath1"];
          fileSystemWatcher2.Path = ConfigurationManager.AppSettings["WatchPath2"];
          fileSystemWatcher3.Path = ConfigurationManager.AppSettings["WatchPath3"];
  </code></pre>
  
  <p>The above works if I know before hand how many folders I am likely going to monitor so my question is, what approach can I take to make this dynamic when I don't know how many folders need to be monitored?  What I'd like to do is continue to use a config or XML file and for each entry create FileSystemWatcher with the path specified in the file.  </p>
  
  <p>I would also need to be able to dynamically create the a method for each FileSystemWatcher so specific actions can be taken when a file system event is triggered.</p>
  
  <p>Example code to created dynamically:</p>
  
  <pre><code>private void fileSystemWatcher1_Created(object sender,  System.IO.FileSystemEventArgs e)
              {
                  Library.WriteErrorLog("New file detected in watch folder.  File: " + e.FullPath);
                  // Do stuff with file
              }
  </code></pre>
  
  <p>Is this possible?  If so how could I go about achieving this?</p>