Exemplo n.º 1
0
        public static Os DetectOs()
        {
            Os osCommands = new Nix();

            if (Path.DirectorySeparatorChar == '\\')
                osCommands = new Windows();

            _log.InfoFormat("Detected the operating system: '{0}'", osCommands.Description);
            return osCommands;
        }
Exemplo n.º 2
0
        public static Os DetectOs()
        {
            Os osCommands = new Nix();

            if (Path.DirectorySeparatorChar == '\\')
            {
                osCommands = new Windows();
            }

            _log.InfoFormat("Detected the operating system: '{0}'", osCommands.Description);
            return(osCommands);
        }