C# Class Talifun.Commander.Executor.CommandLine.CommandLineExecutor

Inheritance: IExectutor
显示文件 Open project: taliesins/talifun-commander Class Usage Examples

Protected Properties

Property Type Description
DataReceivedEventHandlerError DataReceivedEventHandler
DataReceivedEventHandlerOutput DataReceivedEventHandler
Output StringBuilder
UnableToExecuteCommand bool

Public Methods

Method Description
Execute ( CancellationToken cancellationToken, string workingDirectory, string commandPath, string commandArguments, string &output ) : bool

Protected Methods

Method Description
OnErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
OnOutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Method Details

Execute() public method

public Execute ( CancellationToken cancellationToken, string workingDirectory, string commandPath, string commandArguments, string &output ) : bool
cancellationToken System.Threading.CancellationToken
workingDirectory string
commandPath string
commandArguments string
output string
return bool

OnErrorDataReceived() protected method

protected OnErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
sender object
e System.Diagnostics.DataReceivedEventArgs
return void

OnOutputDataReceived() protected method

protected OnOutputDataReceived ( object sender, DataReceivedEventArgs e ) : void
sender object
e System.Diagnostics.DataReceivedEventArgs
return void

Property Details

DataReceivedEventHandlerError protected_oe property

protected DataReceivedEventHandler DataReceivedEventHandlerError
return DataReceivedEventHandler

DataReceivedEventHandlerOutput protected_oe property

protected DataReceivedEventHandler DataReceivedEventHandlerOutput
return DataReceivedEventHandler

Output protected_oe property

protected StringBuilder Output
return StringBuilder

UnableToExecuteCommand protected_oe property

protected bool UnableToExecuteCommand
return bool