Exemplo n.º 1
0
        public void StartWrapperProcess()
        {
            string wrapperName = _wrapperExecutableNameProvider.GetWrapperExecutableName();

            _wrapperProcess = _processFactory.GetProcess(wrapperName, _pipeToken.Token);
            _wrapperProcess.Start();
        }
        public void StartWrapperProcess()
        {
            string wrapperName = _wrapperExecutableNameProvider.GetWrapperExecutableName();

            _wrapperProcess = _processFactory.GetProcess(wrapperName, _pipeToken.Token, _wrapperConfiguration.WorkingDirectory);

            _wrapperProcess.Start();
        }
Exemplo n.º 3
0
        public virtual MockableProcess GetProcess(string executableName, string args)
        {
            Raise.ArgumentNullException.IfIsNull(executableName, nameof(executableName));
            Raise.ArgumentNullException.IfIsNull(args, nameof(args));

            MockableProcess process = new MockableProcess();

            process.StartInfo = new ProcessStartInfo(executableName, args);

            return(process);
        }