public int ExecuteProcess(Prison prison, string filename, string arguments, Dictionary<string, string> extraEnvironmentVariables) { // To debug the service uncomment the following line: // Debugger.Launch(); prison.Reattach(); var p = prison.InitializeProcess(filename, arguments, false, extraEnvironmentVariables); return p.Id; }
public int ExecuteProcess(Prison prison, string filename, string arguments, Dictionary <string, string> extraEnvironmentVariables) { // To debug the service uncomment the following line: // Debugger.Launch(); prison.Reattach(); var p = prison.InitializeProcess(filename, arguments, false, extraEnvironmentVariables); return(p.Id); }