public virtual void StartMonitoring() { if (watcher != null) { return; } watcher = new FileSystemWatcher(path) { EnableRaisingEvents = true, NotifyFilter = NotifyFilters.FileName }; subscription = WatcherObservable.Subscribe(OnNext); }
public virtual void StartMonitoring() { if (watcher != null) { return; } watcher = new FileSystemWatcher(path) { EnableRaisingEvents = true, NotifyFilter = NotifyFilters.FileName }; subscription = WatcherObservable.Subscribe(OnNext); }