Table of Contents

Class FileChangeMonitor

Namespace
Dynamicweb.Caching
Assembly
Dynamicweb.Caching.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.
See Also

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 bool
Determines if Subdirectories should be included in the watched.
See Also

Properties

IncludeSubdirectories

Determines if Subdirectories should be included in the watched.
public bool IncludeSubdirectories { get; }

Property Value

bool
See Also

UniqueId

Gets a value that represents the ChangeMonitor class instance.
public override string UniqueId { get; }

Property Value

string
The unique identifier.
See Also

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 bool
true 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.
See Also

See Also

To top