tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
MasterVersionsAttribute.cs
Go to the documentation of this file.
1using System;
2using System.Reflection;
3
5{
9 [AttributeUsage(AttributeTargets.Assembly)]
11 {
15 public static MasterVersionsAttribute Instance => Assembly
16 .GetExecutingAssembly()
17 .GetCustomAttribute<MasterVersionsAttribute>()!;
18
22 public string RawConfigurationVersion { get; }
23
27 public string RawInteropVersion { get; }
28
32 public string RawWebpanelVersion { get; }
33
37 public string RawHostWatchdogVersion { get; }
38
42 public string RawMariaDBRedistVersion { get; }
43
47 public string RawSwarmProtocolVersion { get; }
48
52 public string RawGraphQLVersion { get; }
53
65 string rawConfigurationVersion,
66 string rawInteropVersion,
67 string rawWebpanelVersion,
68 string rawHostWatchdogVersion,
69 string rawMariaDBRedistVersion,
70 string rawSwarmProtocolVersion,
71 string rawGraphQLVersion)
72 {
73 RawConfigurationVersion = rawConfigurationVersion ?? throw new ArgumentNullException(nameof(rawConfigurationVersion));
74 RawInteropVersion = rawInteropVersion ?? throw new ArgumentNullException(nameof(rawInteropVersion));
75 RawWebpanelVersion = rawWebpanelVersion ?? throw new ArgumentNullException(nameof(rawWebpanelVersion));
76 RawHostWatchdogVersion = rawHostWatchdogVersion ?? throw new ArgumentNullException(nameof(rawHostWatchdogVersion));
77 RawMariaDBRedistVersion = rawMariaDBRedistVersion ?? throw new ArgumentNullException(nameof(rawMariaDBRedistVersion));
78 RawSwarmProtocolVersion = rawSwarmProtocolVersion ?? throw new ArgumentNullException(nameof(rawSwarmProtocolVersion));
79 RawGraphQLVersion = rawGraphQLVersion ?? throw new ArgumentNullException(nameof(rawGraphQLVersion));
80 }
81 }
82}
Attribute for bringing in the master versions list from MSBuild that aren't embedded into assemblies ...
string RawMariaDBRedistVersion
The Version string of the MariaDB server bundled with TGS installs.
string RawHostWatchdogVersion
The Version string of the host watchdog that was built alongside this TGS version.
string RawGraphQLVersion
The Version string of the TGS GraphQL API.
MasterVersionsAttribute(string rawConfigurationVersion, string rawInteropVersion, string rawWebpanelVersion, string rawHostWatchdogVersion, string rawMariaDBRedistVersion, string rawSwarmProtocolVersion, string rawGraphQLVersion)
Initializes a new instance of the MasterVersionsAttribute class.
string RawWebpanelVersion
The Version string of the control panel version built.
string RawInteropVersion
The Version string of the DMAPI interop version used.
string RawSwarmProtocolVersion
The Version string of the TGS swarm protocol.
string RawConfigurationVersion
The Version string of the Configuration version built.
static MasterVersionsAttribute Instance
Return the Assembly's instance of the MasterVersionsAttribute.