C# Class VersionOne.ServiceHost.Core.RecyclingFileMonitor

More thoroughly determines if a file has been processed. Compares file modified stamps for paths that have been logged.
Show file Open project: versionone/VersionOne.ServiceHost.Core Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ProcessFolder ( object pubobj ) : void
RecyclingFileMonitor ( IProfile profile, string watchFolder, string filterPattern, ProcessFileBatchDelegate processor ) : System.IO

Protected Methods

Method Description
GetState ( string file ) : bool?

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

InvokeProcessor ( string files ) : void
SaveState ( string file, bool done ) : void

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

Method Details

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 method

protected InvokeProcessor ( string files ) : void
files string
return void

ProcessFolder() public method

public ProcessFolder ( object pubobj ) : void
pubobj object
return void

RecyclingFileMonitor() public method

public RecyclingFileMonitor ( IProfile profile, string watchFolder, string filterPattern, ProcessFileBatchDelegate processor ) : System.IO
profile IProfile
watchFolder string
filterPattern string
processor ProcessFileBatchDelegate
return System.IO

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