Filesystemwatcher doesn't trigger event
问题 I am trying to monitor a directory for new files in it with the FileSystemWatcher Class. My Problem is that the event doesn't get triggered. My watcher class is: public class Filewatcher { private FileSystemWatcher watcher; public Filewatcher(string path, string filefilter) { this.watcher = new FileSystemWatcher(); this.watcher.Path = path; this.watcher.NotifyFilter = NotifyFilters.FileName; //| NotifyFilters.LastWrite | NotifyFilters.LastAccess this.watcher.Filter = filefilter; this.watcher