From f9064cb2ccbc6be4e39a1ca4d3a4a9f24e9597d5 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Mon, 15 Oct 2018 10:38:49 -0400 Subject: [PATCH] Add PlatformIdentifier --- .../Core/PlatformIdentifier.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Tgstation.Server.Host/Core/PlatformIdentifier.cs diff --git a/src/Tgstation.Server.Host/Core/PlatformIdentifier.cs b/src/Tgstation.Server.Host/Core/PlatformIdentifier.cs new file mode 100644 index 0000000000..fbed84baf9 --- /dev/null +++ b/src/Tgstation.Server.Host/Core/PlatformIdentifier.cs @@ -0,0 +1,19 @@ +using System.Runtime.InteropServices; + +namespace Tgstation.Server.Host.Core +{ + /// + sealed class PlatformIdentifier : IPlatformIdentifier + { + /// + public bool IsWindows { get; } + + /// + /// Construct a + /// + public PlatformIdentifier() + { + IsWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); + } + } +}