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

Inheritance: IExectutor
Show file 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 property

protected DataReceivedEventHandler DataReceivedEventHandlerError
return DataReceivedEventHandler

DataReceivedEventHandlerOutput protected property

protected DataReceivedEventHandler DataReceivedEventHandlerOutput
return DataReceivedEventHandler

Output protected property

protected StringBuilder Output
return StringBuilder

UnableToExecuteCommand protected property

protected bool UnableToExecuteCommand
return bool