C# 클래스 GSF.IO.FileProcessor

Tracks files processed in a list of directories, and notifies when new files become available to be processed.
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultCachePath string

공개 메소드들

메소드 설명
AddTrackedDirectory ( string path ) : void

Adds a directory to the list of directories tracked by this FileProcessor.

ClearTrackedDirectories ( ) : void

Empties the list of directories tracked by this FileProcessor.

Dispose ( ) : void

Releases all the resources used by the FileProcessor object.

EnumerateWatchDirectories ( ) : void

Forces enumeration of directories currently being watched.

FileProcessor ( System.Guid processorID ) : System

Creates a new instance of the FileProcessor class.

RemoveTrackedDirectory ( string path ) : void

Removes a directory from the list of directories tracked by this FileProcessor.

StopEnumeration ( ) : void

Stops all enumeration operations that are currently running.

비공개 메소드들

메소드 설명
DelayAndExecute ( System.Action action, int delay ) : void
FileWatchTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void
LoadProcessedFiles ( ) : void
MatchesFilter ( string filePath ) : bool
OnError ( Exception ex ) : void
OnProcessing ( string fullPath, bool alreadyProcessed ) : bool
ProcessFile ( string filePath ) : bool
QueueFileForProcessing ( string filePath ) : void
RemoveFileWatcher ( SafeFileWatcher watcher ) : void
StartProcessLoop ( string filePath ) : void
TouchLockAndProcess ( string filePath ) : void
Watcher_Changed ( object sender, FileSystemEventArgs args ) : void
Watcher_Created ( object sender, FileSystemEventArgs args ) : void
Watcher_Deleted ( object sender, FileSystemEventArgs args ) : void
Watcher_Error ( object sender, ErrorEventArgs args ) : void
Watcher_Renamed ( object sender, RenamedEventArgs args ) : void

메소드 상세

AddTrackedDirectory() 공개 메소드

Adds a directory to the list of directories tracked by this FileProcessor.
public AddTrackedDirectory ( string path ) : void
path string The path to the directory to be tracked.
리턴 void

ClearTrackedDirectories() 공개 메소드

Empties the list of directories tracked by this FileProcessor.
public ClearTrackedDirectories ( ) : void
리턴 void

Dispose() 공개 메소드

Releases all the resources used by the FileProcessor object.
public Dispose ( ) : void
리턴 void

EnumerateWatchDirectories() 공개 메소드

Forces enumeration of directories currently being watched.
public EnumerateWatchDirectories ( ) : void
리턴 void

FileProcessor() 공개 메소드

Creates a new instance of the FileProcessor class.
public FileProcessor ( System.Guid processorID ) : System
processorID System.Guid Identifies the file processor so that it can locate its processed file cache.
리턴 System

RemoveTrackedDirectory() 공개 메소드

Removes a directory from the list of directories tracked by this FileProcessor.
public RemoveTrackedDirectory ( string path ) : void
path string The path to the directory to stop tracking.
리턴 void

StopEnumeration() 공개 메소드

Stops all enumeration operations that are currently running.
public StopEnumeration ( ) : void
리턴 void

프로퍼티 상세

DefaultCachePath 공개적으로 정적으로 프로퍼티

Default value for the CachePath property.
public static string DefaultCachePath
리턴 string