tgstation-server
4.4.0
The /tg/station 13 server suite
Main Page
Features
API
Architecture
Packages
Classes
Files
File List
src
Tgstation.Server.Host
System
PlatformIdentifier.cs
Go to the documentation of this file.
1
using
System
.Runtime.InteropServices;
2
3
namespace
Tgstation
.
Server
.Host.
System
4
{
6
sealed
class
PlatformIdentifier
:
IPlatformIdentifier
7
{
9
public
bool
IsWindows {
get
; }
10
12
public
string
ScriptFileExtension {
get
; }
13
17
public
PlatformIdentifier
()
18
{
19
IsWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
20
ScriptFileExtension = IsWindows ?
"bat"
:
"sh"
;
21
}
22
}
23
}
Tgstation.Server.Api.Models.IrcPasswordType.Server
Use server authentication
System
Tgstation.Server.Host.System.PlatformIdentifier
Definition:
PlatformIdentifier.cs:6
Tgstation.Server.Host.System.PlatformIdentifier.PlatformIdentifier
PlatformIdentifier()
Construct a PlatformIdentifier
Definition:
PlatformIdentifier.cs:17
Tgstation.Server.Host.System.IPlatformIdentifier
For identifying the current platform
Definition:
IPlatformIdentifier.cs:6
Tgstation
Generated by
1.8.11