private static async Task <int> LoadAndRunProgramAsync(IProgram program) { using (var loader = new ProgramLoader(program)) { return(await loader.LoadAndRunAsync().ConfigureAwait(false)); } }
private static async Task <int> LoadAndRunProgramAsync( string programPath, IEnumerable <string> programArgs, string workingDir) { using (var loader = new ProgramLoader(programPath, programArgs, workingDir)) { return(await loader.LoadAndRunAsync().ConfigureAwait(false)); } }