C# Class Monitor.DirectoryWatcher

Class used to watch changes in directories. It monitors for create, rename and delete actions in directory and throws exception, if and of those actions occurs.
Mostrar archivo Open project: tymanski/SimpleConfigurationManager Class Usage Examples

Public Methods

Method Description
DirectoryWatcher ( SConfigManager configuration ) : System

Initializes the DirectoryWatcher instance.

Private Methods

Method Description
OnCreated ( object source, FileSystemEventArgs e ) : void

Action called when file has been created.

OnDeleted ( object source, FileSystemEventArgs e ) : void

Action called when file has been deleted.

OnRenamed ( object source, RenamedEventArgs e ) : void

Action called when file has been renamed.

Method Details

DirectoryWatcher() public method

Initializes the DirectoryWatcher instance.
public DirectoryWatcher ( SConfigManager configuration ) : System
configuration SimpleConfigurationManager.SConfigManager Configuration object conatining all necessary configuration for /// this class.
return System