IFileChangeNotificationSystem Interface

Definição

Define uma maneira de expor um objeto FileChangeMonitor personalizado para uma implementação de cache.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

Comentários

No ASP.NET, a IFileChangeNotificationSystem interface fornece acesso ao gerenciamento interno de notificações de alteração de arquivo.In ASP.NET, the IFileChangeNotificationSystem interface provides access to internal file-change notification management.

A IFileChangeNotificationSystem interface é usada internamente pela HostFileChangeMonitor classe.The IFileChangeNotificationSystem interface is used internally by the HostFileChangeMonitor class.

Quando uma implementação de cache é executada em um domínio de aplicativo ASP.NET, o ASP.NET implementa uma IFileChangeNotificationSystem interface por meio da Host propriedade.When a cache implementation runs in an ASP.NET application domain, ASP.NET implements an IFileChangeNotificationSystem interface through the Host property. A HostFileChangeMonitor classe detecta essa propriedade e usa o sistema de notificação de alteração de arquivo ASP.net para remover entradas de cache com base na notificação de alteração de arquivo.The HostFileChangeMonitor class detects this property and uses the ASP.NET file-change notification system to evict cache entries based on file-change notification.

Em aplicativos non-ASP.NET, não há nenhum ambiente de host que implemente uma IFileChangeNotificationSystem interface personalizada.In non-ASP.NET applications, there is no host environment that implements a custom IFileChangeNotificationSystem interface. Como resultado, a HostFileChangeMonitor classe usa a FileSystemWatcher classe do CLR.As a result, the HostFileChangeMonitor class uses the FileSystemWatcher class of the CLR.

Métodos

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

Registra um caminho de arquivo para monitorar com o ambiente de host.Registers a file path to monitor with the host environment.

StopMonitoring(String, Object)

O monitoramento das extremidades muda.Ends change monitoring.

Aplica-se a