다음을 통해 공유


IFileChangeNotificationSystem 인터페이스

정의

사용자 지정 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)

변경 모니터링을 종료합니다.

적용 대상