Class FsnotifyFilesMonitor
- Namespace
- Azure.Iot.Operations.Connector.Files.FilesMonitor
- Assembly
- Azure.Iot.Operations.Connector.dll
An implementation of IFilesMonitor that relies on the operating system's Fsnotify.
public class FsnotifyFilesMonitor : IFilesMonitor
- Inheritance
-
FsnotifyFilesMonitor
- Implements
- Inherited Members
Methods
Start(string, string?)
Start monitoring the provided directory and/or file.
public void Start(string directory, string? fileName = null)
Parameters
Stop()
Stop monitoring the provided directory and/or file
public void Stop()
Events
OnFileChanged
Event that executes every time the monitored directory and/or file has been created, updated, or deleted with information about what kind of change it was and what file it was that changed.
public event EventHandler<FileChangedEventArgs>? OnFileChanged