feat(license): implement Hardware-ID v2, multi-platform Linux support, StateStore LLS2 hardening, and AI Agent docs
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Deploymentcenter.Client;
|
||||
|
||||
public static class OperatingSystemHelpers
|
||||
{
|
||||
public static bool IsWindows()
|
||||
{
|
||||
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
|
||||
}
|
||||
|
||||
public static bool IsLinux()
|
||||
{
|
||||
return RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
|
||||
}
|
||||
|
||||
public static bool IsMacOS()
|
||||
{
|
||||
return RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
|
||||
}
|
||||
|
||||
public static string GetPlatformCode()
|
||||
{
|
||||
if (IsWindows()) return "win";
|
||||
if (IsLinux()) return "lin";
|
||||
if (IsMacOS()) return "mac";
|
||||
return "unk";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user