C# Класс Story.Core.Utils.FileWatcher

File watcher calls callback when the watched file is updated with the content of the file
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void
FileWatcher ( string watchedPath, Action onFileChanged ) : System

Initializes a new instance of the FileWatcher class. Will invoke callback with current file content

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Метод Описание
DisposeWatcher ( ) : void
OnChanged ( object sender, FileSystemEventArgs e ) : void
OnError ( object sender, ErrorEventArgs e ) : void
OnFileUpdated ( object state ) : void
ResetWatcher ( ) : void
StartWatcher ( ) : void

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

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

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Initializes a new instance of the FileWatcher class. Will invoke callback with current file content
public FileWatcher ( string watchedPath, Action onFileChanged ) : System
watchedPath string The watched path.
onFileChanged Action The on file changed callback.
Результат System