1 write to _fileWatcher
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
116
_fileWatcher
= fileSystemWatcher;
17 references to _fileWatcher
Microsoft.Extensions.FileProviders.Physical (17)
PhysicalFilesWatcher.cs (17)
117
_fileWatcher
.IncludeSubdirectories = true;
118
_fileWatcher
.Created += OnChanged;
119
_fileWatcher
.Changed += OnChanged;
120
_fileWatcher
.Renamed += OnRenamed;
121
_fileWatcher
.Deleted += OnChanged;
122
_fileWatcher
.Error += OnError;
282
_fileWatcher
?.Dispose();
483
if (
_fileWatcher
!= null)
489
_fileWatcher
.EnableRaisingEvents)
492
_fileWatcher
.EnableRaisingEvents = false;
511
if (
_fileWatcher
is null)
536
if (
_fileWatcher
.EnableRaisingEvents && !rootExists)
538
_fileWatcher
.EnableRaisingEvents = false;
541
if (!
_fileWatcher
.EnableRaisingEvents)
552
if (string.IsNullOrEmpty(
_fileWatcher
.Path))
554
_fileWatcher
.Path = _root;
557
_fileWatcher
.EnableRaisingEvents = true;