tgstation-server
5.12.7
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
System
PlatformIdentifier.cs
Go to the documentation of this file.
1
using
System.Runtime.InteropServices;
2
using
System.Runtime.Versioning;
3
4
namespace
Tgstation.Server.Host.System
5
{
7
sealed
class
PlatformIdentifier
:
IPlatformIdentifier
8
{
10
[SupportedOSPlatformGuard(
"windows"
)]
11
public
bool
IsWindows
{
get
; }
12
14
public
string
ScriptFileExtension
{
get
; }
15
19
public
PlatformIdentifier
()
20
{
21
IsWindows
= RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
22
ScriptFileExtension
=
IsWindows
?
"bat"
:
"sh"
;
23
}
24
}
25
}
Tgstation.Server.Host.System.PlatformIdentifier
Definition:
PlatformIdentifier.cs:8
Tgstation.Server.Host.System.PlatformIdentifier.PlatformIdentifier
PlatformIdentifier()
Initializes a new instance of the PlatformIdentifier class.
Definition:
PlatformIdentifier.cs:19
Tgstation.Server.Host.System.PlatformIdentifier.IsWindows
bool IsWindows
If the current platform is a Windows platform.
Definition:
PlatformIdentifier.cs:11
Tgstation.Server.Host.System.PlatformIdentifier.ScriptFileExtension
string ScriptFileExtension
The extension of executable script files for the system.
Definition:
PlatformIdentifier.cs:14
Tgstation.Server.Host.System.IPlatformIdentifier
For identifying the current platform.
Definition:
IPlatformIdentifier.cs:9
Tgstation.Server.Host.System
Definition:
AssemblyInformationProvider.cs:8
Generated by
1.9.5