Condividi tramite


IFileChangeNotificationSystem Interfaccia

Definizione

Definisce un modo per esporre un oggetto personalizzato FileChangeMonitor a un'implementazione della cache.

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

Commenti

In ASP.NET, l'interfaccia fornisce l'accesso IFileChangeNotificationSystem alla gestione interna delle notifiche di modifica dei file.

L'interfaccia IFileChangeNotificationSystem viene usata internamente dalla HostFileChangeMonitor classe .

Quando un'implementazione della cache viene eseguita in un dominio applicazione ASP.NET, ASP.NET implementa un'interfaccia IFileChangeNotificationSystem tramite la Host proprietà . La HostFileChangeMonitor classe rileva questa proprietà e usa il ASP.NET sistema di notifica delle modifiche file per rimuovere le voci della cache in base alla notifica di modifica dei file.

Nelle applicazioni non-ASP.NET non esiste un ambiente host che implementa un'interfaccia personalizzata IFileChangeNotificationSystem . Di conseguenza, la HostFileChangeMonitor classe usa la FileSystemWatcher classe di CLR.

Metodi

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

Registra un percorso di file da monitorare con l'ambiente host.

StopMonitoring(String, Object)

Termina il monitoraggio delle modifiche.

Si applica a