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
Mostrar archivo Open project: NLog/NLog Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
OnFileChanged ( FileSystemEventArgs e ) : void

Private Methods

Method Description
StopWatching ( FileSystemWatcher watcher ) : void
Watch ( string fileName ) : void

Method Details

Dispose() public method

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

MultiFileWatcher() public method

public MultiFileWatcher ( ) : System
return System

MultiFileWatcher() public method

public MultiFileWatcher ( NotifyFilters notifyFilters ) : System
notifyFilters NotifyFilters
return System

OnFileChanged() protected method

protected OnFileChanged ( FileSystemEventArgs e ) : void
e System.IO.FileSystemEventArgs
return void

StopWatching() public method

Stops watching all files.
public StopWatching ( ) : void
return void

StopWatching() public method

Stops watching the specified file.
public StopWatching ( string fileName ) : void
fileName string
return void

Watch() public method

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