Add PlatformIdentifier

This commit is contained in:
Cyberboss
2018-10-15 10:38:49 -04:00
parent b51f147cd8
commit f9064cb2cc
@@ -0,0 +1,19 @@
using System.Runtime.InteropServices;
namespace Tgstation.Server.Host.Core
{
/// <inheritdoc />
sealed class PlatformIdentifier : IPlatformIdentifier
{
/// <inheritdoc />
public bool IsWindows { get; }
/// <summary>
/// Construct a <see cref="PlatformIdentifier"/>
/// </summary>
public PlatformIdentifier()
{
IsWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
}
}
}