Apache.AuthenticationManager.ExecuteWith C# (CSharp) Method

ExecuteWith() private static method

private static ExecuteWith ( string arguments ) : string
arguments string
return 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;
            }
        }