public void ToCliArg(string input, bool isWindows, string expected) { Assert.AreEqual(expected, ProcessArgs.ToCliArg(input, isWindows)); }
/// <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); }
/// <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); }
public void RaiseProcessCompleted(ProcessArgs args) { this._log.Debug("RaiseProcessCompleted"); }
/// <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);