mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
Add PlatformIdentifier
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user