IFileChangeNotificationSystem Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a way to expose a custom FileChangeMonitor object to a cache implementation.
public interface class IFileChangeNotificationSystem
public interface IFileChangeNotificationSystem
type IFileChangeNotificationSystem = interface
Public Interface IFileChangeNotificationSystem
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.
Start |
Registers a file path to monitor with the host environment. |
Stop |
Ends change monitoring. |
Prodotto | Versioni |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: