public IChildProcessHandle Create(string assemblyName, bool openDebugConsole, bool is64Bit, bool monitorHostProcess)
        {
            IProcessStartOperation processStarter;

            if (is64Bit)
            {
                processStarter = new ProcessStarter64Bit();
            }
            else
            {
                processStarter = new ProcessStarter32Bit();
            }

            return new RemotedProcessBootstrapper(
                new StartProcessWithTimeout(
                    new StartProcessWithJobSupport(
                        processStarter))).Create(assemblyName, openDebugConsole, monitorHostProcess);
        }
예제 #2
0
        public IChildProcessHandle Create(string assemblyName, bool openDebugConsole, bool is64Bit)
        {
            IProcessStartOperation processStarter;

            if (is64Bit)
            {
                processStarter = new ProcessStarter64Bit();
            }
            else
            {
                processStarter = new ProcessStarter32Bit();
            }

            return(new RemotedProcessBootstrapper(
                       new StartProcessWithTimeout(
                           new StartProcessWithJobSupport(
                               processStarter))).Create(assemblyName, openDebugConsole));
        }
예제 #3
0
        public IChildProcessHandle Create(string assemblyName, bool openDebugConsole = false, bool is64Bit = false, bool monitorHostProcess = false)
        {
            IProcessStartOperation processStarter;

            if (is64Bit)
            {
                processStarter = new ProcessStarter64Bit()
                {
                    ClientExecutablePath = ClientExecutablePath
                };
            }
            else
            {
                processStarter = new ProcessStarter32Bit()
                {
                    ClientExecutablePath = ClientExecutablePath
                };
            }

            return(new RemotedProcessBootstrapper(
                       new StartProcessWithTimeout(
                           new StartProcessWithJobSupport(
                               processStarter))).Create(assemblyName, openDebugConsole, monitorHostProcess));
        }