Apache.AuthenticationManager.ExecuteWith C# (CSharp) 메소드

ExecuteWith() 개인적인 정적인 메소드

private static ExecuteWith ( string arguments ) : string
arguments string
리턴 string
        private static string ExecuteWith(string arguments)
        {
            try
            {
                using (var process = new Process())
                {
                    process.StartInfo = new ProcessStartInfo(Executable)
                                            {
                                                CreateNoWindow = true,
                                                RedirectStandardOutput = true,
                                                UseShellExecute = false,
                                                Arguments = arguments
                                            };
                    process.Start();
                    string response = process.StandardOutput.ReadToEnd();
                    process.WaitForExit();
                    return response;
                }
            }
            catch (Exception e)
            {
                return e.Message;
            }
        }