Exemplo n.º 1
0
 public void ToCliArg(string input, bool isWindows, string expected)
 {
     Assert.AreEqual(expected, ProcessArgs.ToCliArg(input, isWindows));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Start the process, use <see cref="ProcessIo.OnProcessExit"/> event to know when the process is done
 /// </summary>
 ///  <param name="arguments">Each argument is expected to be quoted if necessary and double quotes escaped with a second double quote (use quoter).</param>
 /// <param name="silent"></param>
 public void ExecuteAsync(ProcessArgs arguments = null, bool silent = true) {
     ExecuteAsyncProcess(arguments, silent);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Start the process but does not wait for its ending.
 /// Wait for the end with <see cref="WaitForExit"/> or use the <see cref="ProcessIo.OnProcessExit"/> event to know when the process is done.
 /// </summary>
 public void ExecuteNoWait(ProcessArgs arguments = null, bool silent = true)
 {
     ExecuteNoWaitInternal(arguments, silent);
 }
Exemplo n.º 4
0
 public void RaiseProcessCompleted(ProcessArgs args)
 {
     this._log.Debug("RaiseProcessCompleted");
 }
Exemplo n.º 5
0
 /// <summary>
 /// On process arguments
 /// </summary>
 /// <param name="appGuid"><see cref="Guid"/></param>
 /// <param name="args">Arguments</param>
 public void OnProcessArgs(Guid appGuid, string[] args) => ProcessArgs?.Invoke(appGuid, args);