示例#1
0
 public DirectoryWatcher(string directory)
 {
     filesLock          = new SafeReaderWriterLock();
     files              = new ConcurrentDictionary <string, EventHandler>();
     this.directory     = directory;
     pendingFileReloads = new List <string>();
     InitWatcher(directory);
 }
示例#2
0
 public DirectoryWatcher(string directory)
 {
     filesLock = new SafeReaderWriterLock();
     files = new Dictionary<string, EventHandler>();
     this.directory = directory;
     pendingFileReloads = new List<string>();
     InitWatcher(directory);
 }