C# 클래스 Story.Core.Utils.FileWatcher

File watcher calls callback when the watched file is updated with the content of the file
상속: IDisposable
파일 보기 프로젝트 열기: narratr/story 1 사용 예제들

공개 메소드들

메소드 설명
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