public ProcessStatus GetProcessStatus(RunnableProcess process)
 {
     if (process == null)
     {
         throw new ArgumentNullException(nameof(process));
     }
     return(process.Status);
 }
        public Task <RunnableProcess> RunProcessAsync(ProcessConfiguration configuration)
        {
            var process = new RunnableProcess(configuration);

            process.CreateProcess();
            ProcessList.Add(process);

            var task = new Task <RunnableProcess>(() => RunProcess(process));

            task.Start();
            return(task);
        }
 private RunnableProcess RunProcess(RunnableProcess process)
 {
     process.Process.Start();
     return(process);
 }
 public void KillProcess(RunnableProcess process)
 {
     process.Process.Kill();
 }