C# Class GSF.Console.Command.CommandProcess

Inheritance: IDisposable
Exibir arquivo Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
CommandProcess ( string fileName, string arguments ) : System

Creates a new CommandProcess instance.

Dispose ( ) : void

Releases all the resources used by the CommandProcess object.

Execute ( int timeout ) : bool

Attempts to execute process.

Private Methods

Method Description
Dispose ( bool disposing ) : void
m_process_ErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
m_process_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Method Details

CommandProcess() public method

Creates a new CommandProcess instance.
public CommandProcess ( string fileName, string arguments ) : System
fileName string File name to execute.
arguments string Command line parameters, if any. Set to empty string for none.
return System

Dispose() public method

Releases all the resources used by the CommandProcess object.
public Dispose ( ) : void
return void

Execute() public method

Attempts to execute process.
public Execute ( int timeout ) : bool
timeout int Timeout, in milliseconds, to wait for command line operation to complete.
return bool