7 instantiations of FileSystemWatcher
Microsoft.DotNet.HotReload.Utils.Generator (1)
Util\FSWGen.cs (1)
20_fsw = new System.IO.FileSystemWatcher(directoryPath, filter) {
Microsoft.DotNet.HotReload.Watch (1)
FileWatcher\EventBasedDirectoryWatcher.cs (1)
152_fileSystemWatcher = new FileSystemWatcher(WatchedDirectory)
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFileProvider.cs (1)
171watcher = UsePollingFileWatcher && UseActivePolling ? null : new FileSystemWatcher();
PhysicalFilesWatcher.cs (1)
911newWatcher = new FileSystemWatcher(watchDir)
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
58_watcher = new FileSystemWatcher(directory, file);
Microsoft.TemplateEngine.Utils (1)
PhysicalFileSystem.cs (1)
128FileSystemWatcher watcher = new FileSystemWatcher(Path.GetDirectoryName(filePath), Path.GetFileName(filePath));
System.Runtime.Caching (1)
System\Runtime\Caching\FileChangeNotificationSystem.cs (1)
108dirMon.Fsw = new FileSystemWatcher(dir);
53 references to FileSystemWatcher
Microsoft.DotNet.HotReload.Utils.Generator (2)
Util\FSWGen.cs (2)
15readonly System.IO.FileSystemWatcher _fsw; 74var fsw = _fsw;
Microsoft.DotNet.HotReload.Watch (1)
FileWatcher\EventBasedDirectoryWatcher.cs (1)
14private FileSystemWatcher? _fileSystemWatcher;
Microsoft.Extensions.FileProviders.Physical (12)
PhysicalFileProvider.cs (3)
76/// By default, <see cref="PhysicalFileProvider"/> uses <see cref="FileSystemWatcher"/> to listen to file change events 77/// for <see cref="Watch(string)"/>. <see cref="FileSystemWatcher"/> is ineffective in some scenarios such as mounted drives. 158FileSystemWatcher? watcher;
PhysicalFilesWatcher.cs (9)
33private readonly FileSystemWatcher? _fileWatcher; 69FileSystemWatcher? fileSystemWatcher, 87FileSystemWatcher? fileSystemWatcher, 108throw new PlatformNotSupportedException(SR.Format(SR.FileSystemWatcher_PlatformNotSupported, typeof(FileSystemWatcher))); 159/// <see cref="PhysicalFilesWatcher(string, FileSystemWatcher, bool)" />. Globbing patterns 822private FileSystemWatcher? _watcher; // protected by _lock 907FileSystemWatcher? newWatcher = null; 1012FileSystemWatcher? watcher; 1054FileSystemWatcher? w;
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
20private FileSystemWatcher _watcher;
Microsoft.TemplateEngine.Abstractions (2)
PhysicalFileSystem\IPhysicalFileSystem.cs (2)
100/// Same behavior as <see cref="FileSystemWatcher"/>. 103/// Creates new <see cref="FileSystemWatcher"/> which monitors specified path and on any changes calls <paramref name="fileChanged"/> callback.
Microsoft.TemplateEngine.Utils (1)
PhysicalFileSystem.cs (1)
128FileSystemWatcher watcher = new FileSystemWatcher(Path.GetDirectoryName(filePath), Path.GetFileName(filePath));
netstandard (1)
netstandard.cs (1)
927[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileSystemWatcher))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
565[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileSystemWatcher))]
System.IO.FileSystem.Watcher (31)
System\IO\ErrorEventArgs.cs (1)
7/// Provides data for the <see cref='System.IO.FileSystemWatcher.Error'/> event.
System\IO\ErrorEventHandler.cs (2)
8/// handle the <see cref='System.IO.FileSystemWatcher.Error'/> 9/// event of a <see cref='System.IO.FileSystemWatcher'/>.
System\IO\FileSystemEventArgs.cs (3)
7/// Provides data for the directory events: <see cref='System.IO.FileSystemWatcher.Changed'/>, <see cref='System.IO.FileSystemWatcher.Created'/>, <see cref='System.IO.FileSystemWatcher.Deleted'/>.
System\IO\FileSystemEventHandler.cs (4)
7/// Represents the method that will handle the <see cref='System.IO.FileSystemWatcher.Changed'/>, 8/// <see cref='System.IO.FileSystemWatcher.Created'/>, or 9/// <see cref='System.IO.FileSystemWatcher.Deleted'/> event of 10/// a <see cref='System.IO.FileSystemWatcher'/> class.
System\IO\FileSystemWatcher.cs (12)
74/// Initializes a new instance of the <see cref='System.IO.FileSystemWatcher'/> class. 82/// Initializes a new instance of the <see cref='System.IO.FileSystemWatcher'/> class, 92/// Initializes a new instance of the <see cref='System.IO.FileSystemWatcher'/> class, 255/// Occurs when a file or directory in the specified <see cref='System.IO.FileSystemWatcher.Path'/> is changed. 270/// Occurs when a file or directory in the specified <see cref='System.IO.FileSystemWatcher.Path'/> is created. 285/// Occurs when a file or directory in the specified <see cref='System.IO.FileSystemWatcher.Path'/> is deleted. 315/// Occurs when a file or directory in the specified <see cref='System.IO.FileSystemWatcher.Path'/> 463/// Raises the <see cref='System.IO.FileSystemWatcher.Changed'/> event. 471/// Raises the <see cref='System.IO.FileSystemWatcher.Created'/> event. 479/// Raises the <see cref='System.IO.FileSystemWatcher.Deleted'/> event. 499/// Raises the <see cref='System.IO.FileSystemWatcher.Error'/> event. 515/// Raises the <see cref='System.IO.FileSystemWatcher.Renamed'/> event.
System\IO\FileSystemWatcher.Linux.cs (6)
993private readonly WeakReference<FileSystemWatcher> _weakFsw; 1018public Watcher(FileSystemWatcher fsw) 1020_weakFsw = new WeakReference<FileSystemWatcher>(fsw); 1127FileSystemWatcher? fsw = Fsw; 1230private FileSystemWatcher? Fsw 1234_weakFsw.TryGetTarget(out FileSystemWatcher? watcher);
System\IO\RenamedEventArgs.cs (1)
7/// Provides data for the <see cref='System.IO.FileSystemWatcher.Renamed'/> event.
System\IO\RenamedEventHandler.cs (2)
7/// Represents the method that will handle the <see cref='System.IO.FileSystemWatcher.Renamed'/> event of a <see cref='System.IO.FileSystemWatcher'/> class.
System.Runtime.Caching (1)
System\Runtime\Caching\FileChangeNotificationSystem.cs (1)
27internal FileSystemWatcher Fsw;