IFileChangeNotificationSystem Interface

Defines a way to expose a custom FileChangeMonitor object to a cache implementation.

Namespace:  System.Runtime.Caching.Hosting
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public interface IFileChangeNotificationSystem

The IFileChangeNotificationSystem type exposes the following members.

  NameDescription
Public methodStartMonitoringRegisters a file path to monitor with the host environment.
Public methodStopMonitoringEnds change monitoring.
Top

In ASP.NET, the IFileChangeNotificationSystem interface provides access to internal file-change notification management.

The IFileChangeNotificationSystem interface is used internally by the HostFileChangeMonitor class.

When a cache implementation runs in an ASP.NET application domain, ASP.NET implements an IFileChangeNotificationSystem interface through the Host property. The HostFileChangeMonitor class detects this property and uses the ASP.NET file-change notification system to evict cache entries based on file-change notification.

In non-ASP.NET applications, there is no host environment that implements a custom IFileChangeNotificationSystem interface. As a result, the HostFileChangeMonitor class uses the FileSystemWatcher class of the CLR.

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft