C# Class Nexus.Client.Games.FileSearcher

This task searched the user's computer for the specified installation path.
The task is given specific file names for which to search that indicate the installation path being sought.
Inheritance: ThreadedBackgroundTask
Mostrar archivo Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
FileSearcher ( ) : System

A simple constructor that initializes the object with the given values.

Find ( string p_strSearchFiles ) : void

Finds all files matching the given patterns.

Protected Methods

Method Description
DoWork ( object p_objArgs ) : object

The delegate that is called to start the backgound task.

OnFileFound ( EventArgs e ) : void

Raises the FileFound event.

OnFileFound ( string p_strFoundPath ) : void

Raises the FileFound event.

Search ( string p_strPath, Regex p_rgxPatterns ) : void

This recursively searches the specified directory for the search files.

Method Details

DoWork() protected method

The delegate that is called to start the backgound task.
protected DoWork ( object p_objArgs ) : object
p_objArgs object the file patterns to search for.
return object

FileSearcher() public method

A simple constructor that initializes the object with the given values.
public FileSearcher ( ) : System
return System

Find() public method

Finds all files matching the given patterns.
public Find ( string p_strSearchFiles ) : void
p_strSearchFiles string The file patterns to search for.
return void

OnFileFound() protected method

Raises the FileFound event.
protected OnFileFound ( EventArgs e ) : void
e EventArgs An describing the task that was started.
return void

OnFileFound() protected method

Raises the FileFound event.
protected OnFileFound ( string p_strFoundPath ) : void
p_strFoundPath string The path of the file that was found.
return void

Search() protected method

This recursively searches the specified directory for the search files.
protected Search ( string p_strPath, Regex p_rgxPatterns ) : void
p_strPath string The path of the direcotry to recursively search.
p_rgxPatterns Regex The file patterns to search for.
return void