public void OpenFileWithAssociatedApp(FileInfo file) { var launchContext = CreateContextForOpenFile(file); using var runner = ProgramRunner.RunProgram(launchContext); runner.Wait(); }
public async Task <string> GetOutputAsync(string fileName, string?args) { var launchContext = CreateContextForGetOutput(fileName, args); using var runner = ProgramRunner.RunProgram(launchContext); await runner.WaitAsync(); return(await runner.GetAllOutputAsync()); }
public string GetOutput(string fileName, string?args) { var launchContext = CreateContextForGetOutput(fileName, args); using var runner = ProgramRunner.RunProgram(launchContext); runner.Wait(); return(runner.GetAllOutput()); }
public async Task OpenFileWithAssociatedAppAsync(FileInfo file) { var launchContext = CreateContextForOpenFile(file); using var runner = ProgramRunner.RunProgram(launchContext); await runner.WaitAsync(); }