C# Class mybox.DirectoryWatcher

Class for watching a directory for updates
Afficher le fichier Open project: jonocodes/mybox Class Usage Examples

Méthodes publiques

Méthode Description
DirectoryWatcher ( String _dir, ClientServerConnection _client ) : System
Listen ( ) : void

Enable the event raiser for the update listener

Pause ( ) : void

Disable the event raiser for the update listener

Private Methods

Méthode Description
onChanged ( object source, FileSystemEventArgs e ) : void

Handler for directory or file change update

onRenamed ( object source, RenamedEventArgs e ) : void
run ( ) : void

Dummy loop for the listener thread

start ( ) : void

Method Details

DirectoryWatcher() public méthode

public DirectoryWatcher ( String _dir, ClientServerConnection _client ) : System
_dir String
_client ClientServerConnection
Résultat System

Listen() public méthode

Enable the event raiser for the update listener
public Listen ( ) : void
Résultat void

Pause() public méthode

Disable the event raiser for the update listener
public Pause ( ) : void
Résultat void