RunAndGetStandardOutputAsString() публичный статический Метод

public static RunAndGetStandardOutputAsString ( string path, string parameter ) : string
path string
parameter string
Результат string
        public static bool IsEmulatorRunning()
        {
            var path = GetPathToStorageEmulatorExecutable();

            var output = ProcessHelper.RunAndGetStandardOutputAsString(path, "status");

            if (output.Contains("IsRunning: True"))
            {
                return(true);
            }
            else if (output.Contains("IsRunning: False"))
            {
                return(false);
            }

            throw new ApplicationException("Unable to determine if Azure Storage Emulator is running.");
        }
        private static void RunWithParameter(string parameter)
        {
            var path = GetPathToStorageEmulatorExecutable();

            ProcessHelper.RunAndGetStandardOutputAsString(path, parameter);
        }