Property | Type | Description | |
---|---|---|---|
DisposeProcessHandler | void | ||
KillProcessAndChildren | void | ||
process_ErrorDataReceived | void | ||
process_Exited | void | ||
process_OutputDataReceived | void |
Method | Description | |
---|---|---|
Abort ( ) : void |
Stop the current process and all its child process.
|
|
Execute ( bool waitForExit = true ) : ProcessResult |
Execute process and return result in the form of ProcessResult. No exception is expected from this application. Execution error will be reflected in ExitCode. |
|
ProcessExecutor ( string name = "Unnamed" ) : System |
Constructor
|
|
RedirectOutputToFile ( string logFile ) : void |
Redirect standard output and standrad error to file. By default, standard output and standard error are stored in ProcessResult which returned at the end of Execute()
|
|
Validate ( ) : void |
Check if the specific tool exists.
|
Method | Description | |
---|---|---|
Version ( string command ) : System.Version |
Get tools version.
|
Method | Description | |
---|---|---|
DisposeProcessHandler ( ) : void | ||
KillProcessAndChildren ( int pid ) : void | ||
process_ErrorDataReceived ( object sender, |
||
process_Exited ( object sender, |
||
process_OutputDataReceived ( object sender, |
public Execute ( bool waitForExit = true ) : ProcessResult | ||
waitForExit | bool | Set to true to wait until process exit, else return once process started. |
return | ProcessResult |
public ProcessExecutor ( string name = "Unnamed" ) : System | ||
name | string | Instance name |
return | System |
public RedirectOutputToFile ( string logFile ) : void | ||
logFile | string | Target file to store output logs. |
return | void |
protected Version ( string command ) : System.Version | ||
command | string | Command to retrieve version number, e.g. "/?", "--version" |
return | System.Version |