Beispiel #1
0
 /// <summary>
 /// 构建
 /// </summary>
 public CommandExecuter()
 {
     _builder   = new OutputBuilder();
     _lock      = new object();
     _startInfo = new ProcessStartInfo()
     {
         RedirectStandardError  = true,
         RedirectStandardOutput = true,
         RedirectStandardInput  = true,
         UseShellExecute        = false,
         CreateNoWindow         = true,
     };
 }
Beispiel #2
0
 /// <summary>
 /// 增加
 /// </summary>
 /// <param name="builder"></param>
 public void Append(OutputBuilder builder)
 {
     outSb.Append(builder.outSb);
     errSb.Append(builder.errSb);
     allSb.Append(builder.allSb);
 }