Class FileChangeMonitor
- Namespace
- Dynamicweb.Caching
- Assembly
- Dynamicweb.Core.dll
FileChangeMonitor class used by the cache manager to invalidate cache when files are changed.
- Inheritance
-
File
Change Monitor
- Implements
- Inherited Members
Constructors
FileChangeMonitor(IEnumerable<string>)
Initializes a new instance of the File
Parameters
paths
IEnumerable<string>The paths to dependencies. Can be both paths to directories and to files.
FileChangeMonitor(IEnumerable<string>, bool)
Initializes a new instance of the File
Parameters
paths
IEnumerable<string>The paths to dependencies. Can be both paths to directories and to files.
includeSubdirectories
boolDetermines if Subdirectories should be included in the watched.
Properties
IncludeSubdirectories
Determines if Subdirectories should be included in the watched.
Property Value
UniqueId
Gets a value that represents the Change
Property Value
- string
The unique identifier.
Methods
Dispose(bool)
Releases all managed and unmanaged resources and any references to the Change
Parameters
disposing
booltrue to release managed and unmanaged resources and any references to a Change
Monitor instance; false to release only unmanaged resources. When false is passed, the Dispose(bool) method is called by a finalizer thread and any external managed references are likely no longer valid because they have already been garbage collected.