in src/Authentication/PlatformInformation.cs [32:50]
public static string GetOSType()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return nameof(OSPlatform.Windows);
}
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
return nameof(OSPlatform.Linux);
}
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
return nameof(OSPlatform.OSX);
}
return "Unknown";
}