Метод | Описание | |
---|---|---|
ConsoleApp ( string fileName, string cmdLine ) : System |
ConsoleApp constructor
|
|
Dispose ( ) : void | ||
Run ( string fileName, string cmdLine = null ) : System.Result |
Run console app synchronously and capture all its output including standard error stream.
|
|
Run ( ) : void |
Start the app.
|
|
Stop ( ConsoleSpecialKey closeKey = ConsoleSpecialKey.ControlC, int forceCloseMillisecondsTimeout = Timeout.Infinite ) : void |
Stop the app.
|
|
WaitForExit ( int millisecondsTimeout = Timeout.Infinite ) : bool |
Wait until the app exits.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void | ||
OnConsoleOutput ( |
||
OnExited ( |
Метод | Описание | |
---|---|---|
CloseConsole ( ConsoleSpecialKey closeKey, int forceCloseMillisecondsTimeout ) : void | ||
ConsoleCtrlHandler ( Win32 ctrlType ) : bool | ||
DispatchProcessOutput ( ) : void | ||
FreeProcessResources ( ) : void | ||
HandleProcessExit ( ) : void | ||
MonitoringHandler ( object obj ) : void | ||
OnErrorLineReceived ( object sender, |
||
OnOutputLineReceived ( object sender, |
||
OnProcessExited ( object sender, |
||
StartProcessAsync ( ) : void | ||
ThrowIfDisposed ( ) : void |
public ConsoleApp ( string fileName, string cmdLine ) : System | ||
fileName | string | File name or DOS command |
cmdLine | string | Command-line arguments |
Результат | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
protected OnConsoleOutput ( |
||
e | ||
Результат | void |
protected OnExited ( |
||
e | ||
Результат | void |
public static Run ( string fileName, string cmdLine = null ) : System.Result | ||
fileName | string | File name or DOS command |
cmdLine | string | Command-line arguments |
Результат | System.Result |
public Stop ( ConsoleSpecialKey closeKey = ConsoleSpecialKey.ControlC, int forceCloseMillisecondsTimeout = Timeout.Infinite ) : void | ||
closeKey | ConsoleSpecialKey | Special key to send to close the app [default=Ctrl-C] |
forceCloseMillisecondsTimeout | int | Timeout to wait before closing the app forcefully [default=infinite] |
Результат | void |
public WaitForExit ( int millisecondsTimeout = Timeout.Infinite ) : bool | ||
millisecondsTimeout | int | Timeout to wait until the app is exited [default=infinite] |
Результат | bool |