Beispiel #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;
        }
Beispiel #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);
        }