IFileChangeNotificationSystem 인터페이스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자 지정 FileChangeMonitor 개체를 캐시 구현에 노출하는 방법을 정의합니다.
public interface class IFileChangeNotificationSystem
public interface IFileChangeNotificationSystem
type IFileChangeNotificationSystem = interface
Public Interface IFileChangeNotificationSystem
설명
ASP.NET 인터페이스는 IFileChangeNotificationSystem 내부 파일 변경 알림 관리에 대한 액세스를 제공합니다.
인터페이스는 IFileChangeNotificationSystem 클래스에서 HostFileChangeMonitor 내부적으로 사용됩니다.
캐시 구현이 ASP.NET 애플리케이션 도메인에서 실행되면 ASP.NET 속성을 통해 인터페이스를 IFileChangeNotificationSystemHost 구현합니다. 클래스는 HostFileChangeMonitor 이 속성을 검색하고 ASP.NET 파일 변경 알림 시스템을 사용하여 파일 변경 알림에 따라 캐시 항목을 제거합니다.
non-ASP.NET 애플리케이션에는 사용자 지정 IFileChangeNotificationSystem 인터페이스를 구현하는 호스트 환경이 없습니다. 결과적으로 클래스는 HostFileChangeMonitor CLR의 클래스를 사용합니다 FileSystemWatcher .
메서드
| Name | Description |
|---|---|
| StartMonitoring(String, OnChangedCallback, Object, DateTimeOffset, Int64) |
호스트 환경에 모니터링할 파일 경로를 등록합니다. |
| StopMonitoring(String, Object) |
변경 모니터링을 종료합니다. |