Esempio n. 1
0
 static void ExecuteNetStatCommand()
 {
     TraceCommandHeader("NetStat.exe");
     ExecuteProcess(
         "netstat.exe",
         "-ano -p tcp",
         TimeSpan.FromSeconds(30),
         (s) => RelayTraceSource.TraceInfo(s),
         (s) => RelayTraceSource.TraceError("ERROR: " + s),
         throwOnNonZero: true);
 }
Esempio n. 2
0
 public static void TraceMissingArgument(string argumentName)
 {
     RelayTraceSource.TraceError($"*** Error: {argumentName} is required ***");
 }