public int Execute(string moduleName, int expectedOutputLength, out string processOutput) { _executeRequested = true; try { return(_assemblyManager.Execute(moduleName, expectedOutputLength, out processOutput)); } catch (TargetInvocationException tie) { string dumpDir; _assemblyManager.DumpAssemblyData(out dumpDir); throw new ExecutionException(tie.InnerException, dumpDir); } }