AcManager.Tools.Helpers.AbstractSubdirectoryWatcherProvider.ContentWatcher.SetFsWatcher C# (CSharp) Method

SetFsWatcher() private method

private SetFsWatcher ( ) : void
return void
            private void SetFsWatcher() {
                if (_fsWatcher != null) UnsetFsWatcher();

                _fsWatcher = new FileSystemWatcher {
                    Path = _path,
                    NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName,
                    Filter = "*.*"
                };
                _fsWatcher.Changed += FsWatcher_Changed;
                _fsWatcher.Created += FsWatcher_Changed;
                _fsWatcher.Deleted += FsWatcher_Changed;
                _fsWatcher.Renamed += FsWatcher_Changed;
                _fsWatcher.EnableRaisingEvents = true;
            }