I need to setup an application that watches for files being created in a directory, both locally or on a network drive.
Would the FileSystemWatcher or p
FileSystemWatcher
Returning from the event method as quickly as possible, using another thread, solved the problem for me:
private void Watcher_Created(object sender, FileSystemEventArgs e) { Task.Run(() => MySubmit(e.FullPath)); }