다음을 통해 공유


IFileChangeNotificationSystem 인터페이스

정의

사용자 지정 FileChangeMonitor 개체를 캐시 구현에 노출하는 방법을 정의합니다.

public interface class IFileChangeNotificationSystem
public interface IFileChangeNotificationSystem
type IFileChangeNotificationSystem = interface
Public Interface IFileChangeNotificationSystem

설명

ASP.NET에서는 IFileChangeNotificationSystem 인터페이스는 내부 파일 변경 알림 관리에 대 한 액세스를 제공 합니다.

합니다 IFileChangeNotificationSystem 인터페이스에서 내부적으로 사용 되는 HostFileChangeMonitor 클래스입니다.

캐시 구현이 ASP.NET 애플리케이션 도메인에서 실행 될 때 ASP.NET에서 구현 하는 IFileChangeNotificationSystem 를 통해 인터페이스는 Host 속성입니다. HostFileChangeMonitor 클래스가이 속성을 검색 하 고 ASP.NET 파일 변경 알림 시스템을 사용 하 여 파일 변경 알림에 따라 캐시 엔트리를 제거 합니다.

ASP.NET 이외의 애플리케이션에는 사용자 지정을 구현 하는 호스트 환경이 없는 IFileChangeNotificationSystem 인터페이스입니다. 결과적으로 HostFileChangeMonitor 클래스가 사용 하는 FileSystemWatcher CLR의 클래스입니다.

메서드

StartMonitoring(String, OnChangedCallback, Object, DateTimeOffset, Int64)

모니터링할 파일 경로를 호스트 환경에 등록합니다.

StopMonitoring(String, Object)

변경 모니터링을 끝냅니다.

적용 대상