C# Class KeepSync.ConsoleExec

显示文件 Open project: jamie-pate/KeepSync Class Usage Examples

Public Methods

Method Description
ConsoleExec ( ) : System
GetCompleted ( ) : bool
GetError ( ) : string
GetExitCode ( ) : int
GetOutput ( ) : string
QuoteArg ( string arg ) : string
SetInput ( string input ) : void
Start ( string command, string args, string workingDirectory, System inStream = null, System outStream = null ) : void
rtStart ( ) : void
wtStart ( ) : void

Private Methods

Method Description
Pump ( Action output, Action error ) : void
p_ErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
p_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Method Details

ConsoleExec() public method

public ConsoleExec ( ) : System
return System

GetCompleted() public method

public GetCompleted ( ) : bool
return bool

GetError() public method

public GetError ( ) : string
return string

GetExitCode() public method

public GetExitCode ( ) : int
return int

GetOutput() public method

public GetOutput ( ) : string
return string

QuoteArg() public method

public QuoteArg ( string arg ) : string
arg string
return string

SetInput() public method

public SetInput ( string input ) : void
input string
return void

Start() public method

public Start ( string command, string args, string workingDirectory, System inStream = null, System outStream = null ) : void
command string
args string
workingDirectory string
inStream System
outStream System
return void

rtStart() public method

public rtStart ( ) : void
return void

wtStart() public method

public wtStart ( ) : void
return void