C# Класс mybox.DirectoryWatcher

Class for watching a directory for updates
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

DirectoryWatcher() публичный Метод

public DirectoryWatcher ( String _dir, ClientServerConnection _client ) : System
_dir String
_client ClientServerConnection
Результат System

Listen() публичный Метод

Enable the event raiser for the update listener
public Listen ( ) : void
Результат void

Pause() публичный Метод

Disable the event raiser for the update listener
public Pause ( ) : void
Результат void