C# Class NLog.Internal.MultiFileWatcher

Watches multiple files at the same time and raises an event whenever a single change is detected in any of those files.
Inheritance: IDisposable
Afficher le fichier Open project: NLog/NLog Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MultiFileWatcher ( ) : System
MultiFileWatcher ( NotifyFilters notifyFilters ) : System
StopWatching ( ) : void

Stops watching all files.

StopWatching ( string fileName ) : void

Stops watching the specified file.

Watch ( IEnumerable fileNames ) : void

Watches the specified files for changes.

Méthodes protégées

Méthode Description
OnFileChanged ( FileSystemEventArgs e ) : void

Private Methods

Méthode Description
StopWatching ( FileSystemWatcher watcher ) : void
Watch ( string fileName ) : void

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

MultiFileWatcher() public méthode

public MultiFileWatcher ( ) : System
Résultat System

MultiFileWatcher() public méthode

public MultiFileWatcher ( NotifyFilters notifyFilters ) : System
notifyFilters NotifyFilters
Résultat System

OnFileChanged() protected méthode

protected OnFileChanged ( FileSystemEventArgs e ) : void
e System.IO.FileSystemEventArgs
Résultat void

StopWatching() public méthode

Stops watching all files.
public StopWatching ( ) : void
Résultat void

StopWatching() public méthode

Stops watching the specified file.
public StopWatching ( string fileName ) : void
fileName string
Résultat void

Watch() public méthode

Watches the specified files for changes.
public Watch ( IEnumerable fileNames ) : void
fileNames IEnumerable The file names.
Résultat void