Definition at line 28 of file ShellCommand.cs.
Ntp.Common.IO.ShellCommand.ShellCommand |
( |
string |
command, |
|
|
string |
arguments, |
|
|
LogBase |
log, |
|
|
string |
message |
|
) |
| |
|
inline |
StreamReader Ntp.Common.IO.ShellCommand.Execute |
( |
| ) |
|
|
inline |
Definition at line 46 of file ShellCommand.cs.
References e.
48 var proc =
new global::System.Diagnostics.Process
50 EnableRaisingEvents =
false,
53 UseShellExecute =
false,
54 RedirectStandardOutput =
true,
55 RedirectStandardError =
true,
58 Arguments = $
" {arguments}" 68 error = proc.StandardError.ReadToEnd().Replace(Environment.NewLine,
" ");
77 if (error ==
string.Empty)
78 return proc.StandardOutput;
abstract void WriteLine(string text, Severity severity)
static string WorkingDirectory
readonly string arguments
readonly string Ntp.Common.IO.ShellCommand.arguments |
|
private |
readonly string Ntp.Common.IO.ShellCommand.command |
|
private |
readonly LogBase Ntp.Common.IO.ShellCommand.log |
|
private |
string Ntp.Common.IO.ShellCommand.ErrorMessage |
|
getset |
string Ntp.Common.IO.ShellCommand.WorkingDirectory |
|
staticgetset |
The documentation for this class was generated from the following file: