BlockStudio.Ethereum.GethService.RunGethInstance C# (CSharp) Method

RunGethInstance() public static method

public static RunGethInstance ( Connection connection, bool isTest = false ) : void
connection Connection
isTest bool
return void
        public static void RunGethInstance(Connection connection, bool isTest = false)
        {
            var args = GetCommandLineArgs(connection);

            if (isTest)
            {
                var startInfoTest = new ProcessStartInfo("cmd");
                startInfoTest.Arguments = @"/K C:\Users\machine\Dropbox\GitHub\""Ethereum Rpc .NET""\""Block Studio""\bin\Debug\geth.exe  " + args;
                //startInfoTest.RedirectStandardOutput = true;
                //startInfoTest.UseShellExecute = false;
                var process = new Process();
                process.StartInfo = startInfoTest;
                process.Start();
            }
            else
            {
                var gethPath = string.Format("{0}\\geth.exe", BlockStudioSettings.ExecutingDirectory);
                var startInfo = new ProcessStartInfo();
                //startInfo.RedirectStandardOutput = true;
                //startInfo.UseShellExecute = false;
                startInfo.FileName = gethPath;
                startInfo.Arguments = GetCommandLineArgs(connection);

                var process = new Process();
                process.StartInfo = startInfo;
                process.Start();
            }
        }
    }