Method | Description | |
---|---|---|
GetPercentComplete ( ) : int |
Returns integer percentage of overall progress, based on the number of retrieved and validated results.
|
|
ResultReturned ( object obj, |
Called by the PageManagers whenever they have a result. Returns the result back to the UI. Also checks and stops work if finished.
|
|
SearchManager ( |
Create and start work on a new search. Spawns PageManagers.
|
|
WorkerFinished ( object obj, |
Called by PageManagers when their task is complete. If there is still work to be done, replaces the finished pageManager with a new one (creates a new thread) Exits if all work is complete.
|
Method | Description | |
---|---|---|
HaltAllOngoingWork ( ) : void |
Stops and disposes all PageManager threads and marks the main search as finished working
|
|
IsWorkFinished ( ) : bool |
True if the search was cancelled, we've reached 100% of the desired number of results, or all of the threads are finished
|
|
OutputPageManagerStatus ( ) : void |
Write PageManager WorkStatus to console for debugging
|
|
Work ( object sender, |
Sets up PageManager threads and begin search
|
public ResultReturned ( object obj, |
||
obj | object | sender object |
args | Result |
|
return | void |
public SearchManager ( |
||
searchCriteria | User-supplied search criteria | |
threadCount | int | Number of pages to search asynchronously |
return | System |
public WorkerFinished ( object obj, |
||
obj | object | sender object |
args | Result |
|
return | void |