IFileChangeNotificationSystem Interface
Definition
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
Remarks
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.
Methods
StartMonitoring(String, OnChangedCallback, Object, DateTimeOffset, Int64) |
Registers a file path to monitor with the host environment. |
StopMonitoring(String, Object) |
Ends change monitoring. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기