Class FileChangeMonitor
- Namespace
- Dynamicweb.Caching
- Assembly
- Dynamicweb.Core.dll
FileChangeMonitor class used by the cache manager to invalidate cache when files are changed.
public class FileChangeMonitor : ChangeMonitor, IDisposable
- Inheritance
-
FileChangeMonitor
- Implements
- Inherited Members
Constructors
FileChangeMonitor(IEnumerable<string>)
Initializes a new instance of the FileChangeMonitor class.
public FileChangeMonitor(IEnumerable<string> paths)
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 FileChangeMonitor class.
public FileChangeMonitor(IEnumerable<string> paths, bool includeSubdirectories)
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.
public bool IncludeSubdirectories { get; }
Property Value
UniqueId
Gets a value that represents the ChangeMonitor class instance.
public override string UniqueId { get; }
Property Value
- string
The unique identifier.
Methods
Dispose(bool)
Releases all managed and unmanaged resources and any references to the ChangeMonitor instance. This overload must be implemented by derived change-monitor classes.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue to release managed and unmanaged resources and any references to a ChangeMonitor 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.