C# Class SourceControl.ProcessReader

Show file Open project: daptiv/Malevich Class Usage Examples

Public Methods

Method Description
ProcessReader ( LogOptions logLevel ) : System
RunExecutable ( string exeToRun, bool eatFirstLine, string commandLine ) : string

Runs an exe, returns the output in a string. If error happens, prints stderr and returns null.

Private Methods

Method Description
ErrorHandler ( object sendingProcess, DataReceivedEventArgs dataReceivedEventArgs ) : void
OutputHandler ( object sendingProcess, DataReceivedEventArgs dataReceivedEventArgs ) : void

Method Details

ProcessReader() public method

public ProcessReader ( LogOptions logLevel ) : System
logLevel LogOptions
return System

RunExecutable() public method

Runs an exe, returns the output in a string. If error happens, prints stderr and returns null.
public RunExecutable ( string exeToRun, bool eatFirstLine, string commandLine ) : string
exeToRun string
eatFirstLine bool
commandLine string Command line to execute.
return string