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;
        }
Exemple #2
0
        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);
        }