public static PlatformOS GetRuntimePlatformOS()

in aws-crt/Platform.cs [24:41]


        public static PlatformOS GetRuntimePlatformOS() {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                return PlatformOS.WINDOWS;
            }
            else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
            {
                return PlatformOS.UNIX;
            }
            else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
            {
                return PlatformOS.MAC;
            }
            else
            {
                throw new CrtException("Could not detect a supported platform");
            }
        }