public static bool IsRedHatFamily7 => IsRedHatFamilyAndVersion(7);
public static bool IsNotFedoraOrRedHatFamily => !IsFedora && !IsRedHatFamily;
public static bool IsNotDebian10 => !IsDebian10;
+ public static bool IsNotApple =>
+ !RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS")) &&
+ !RuntimeInformation.IsOSPlatform(OSPlatform.OSX) &&
+ !RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS"));
public static bool IsSuperUser => !IsWindows ?
libc.geteuid() == 0 :
throw new PlatformNotSupportedException();
- public static Version OpenSslVersion => !IsOSX && !IsWindows ?
+ public static Version OpenSslVersion => IsNotApple && !IsWindows ?
GetOpenSslVersion() :
throw new PlatformNotSupportedException();