/// <summary> /// 停止异步的proces /// </summary> public void StopAsyncProcess() { CmdHelper.KillAsyncProcess(); }
/// <summary> /// 异步执行 /// </summary> /// <param name="cmds"></param> /// <param name="outputDataReceived"></param> /// <param name="errorDataReceived"></param> private void ExecCmdAsync(List <string> cmds, DataReceivedEventHandler outputDataReceived, DataReceivedEventHandler errorDataReceived) { cmds = GetCmds(cmds); CmdHelper.ExecCmdAsync(cmds, outputDataReceived, errorDataReceived); }