C# Class VersionOne.ServiceHost.Core.FileSystemMonitor

Mostrar archivo Open project: versionone/VersionOne.ServiceHost.Core

Private Properties

Property Type Description

Public Methods

Method Description
FileSystemMonitor ( IProfile profile, string watchFolder, string filterPattern ) : System.IO

Protected Methods

Method Description
GetState ( string file ) : bool?

Get the processed state of the given file from the profile.

InvokeProcessor ( string path ) : void
ProcessPath ( string path ) : void

Perform the basic processing pattern.

SaveState ( string file, bool done ) : void

Save the processing state for the given file to the profile.

Method Details

FileSystemMonitor() public method

public FileSystemMonitor ( IProfile profile, string watchFolder, string filterPattern ) : System.IO
profile IProfile
watchFolder string
filterPattern string
return System.IO

GetState() protected method

Get the processed state of the given file from the profile.
protected GetState ( string file ) : bool?
file string File to look up.
return bool?

InvokeProcessor() protected abstract method

protected abstract InvokeProcessor ( string path ) : void
path string
return void

ProcessPath() protected method

Perform the basic processing pattern.
protected ProcessPath ( string path ) : void
path string A file or directory name, depending on the subclass implementation.
return void

SaveState() protected method

Save the processing state for the given file to the profile.
protected SaveState ( string file, bool done ) : void
file string File in question.
done bool True if processed.
return void