C# Class Hardly.FileObserver

显示文件 Open project: hardlydifficult/HardlyBot

Public Methods

Method Description
FileObserver ( string filename, bool keepFileOpen ) : System
RegisterObserver ( Action observer ) : void

Private Methods

Method Description
NewLines ( ) : List
Observe ( string line ) : void
WatchFile_Blocking ( ) : void
Watcher_Changed ( object sender, FileSystemEventArgs e ) : void

Method Details

FileObserver() public method

public FileObserver ( string filename, bool keepFileOpen ) : System
filename string
keepFileOpen bool
return System

RegisterObserver() public method

public RegisterObserver ( Action observer ) : void
observer Action
return void