tgstation-server 6.9.2
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
53 string rawConfigurationVersion,
54 string rawInteropVersion,
55 string rawWebpanelVersion,
56 string rawHostWatchdogVersion,
57 string rawMariaDBRedistVersion)
58 {
59 RawConfigurationVersion = rawConfigurationVersion ?? throw new ArgumentNullException(nameof(rawConfigurationVersion));
60 RawInteropVersion = rawInteropVersion ?? throw new ArgumentNullException(nameof(rawInteropVersion));
61 RawWebpanelVersion = rawWebpanelVersion ?? throw new ArgumentNullException(nameof(rawWebpanelVersion));
62 RawHostWatchdogVersion = rawHostWatchdogVersion ?? throw new ArgumentNullException(nameof(rawHostWatchdogVersion));
63 RawMariaDBRedistVersion = rawMariaDBRedistVersion ?? throw new ArgumentNullException(nameof(rawMariaDBRedistVersion));
64 }
65 }
66}
Attribute for bringing in the master versions list from MSBuild that aren't embedded into assemblies ...
MasterVersionsAttribute(string rawConfigurationVersion, string rawInteropVersion, string rawWebpanelVersion, string rawHostWatchdogVersion, string rawMariaDBRedistVersion)
Initializes a new instance of the MasterVersionsAttribute class.
string RawMariaDBRedistVersion
The Version string of the MariaDB server bundled with TGS installs.
string RawHostWatchdogVersion
The Version string of the control panel version built.
string RawWebpanelVersion
The Version string of the control panel version built.
string RawInteropVersion
The Version string of the DMAPI interop version used.
string RawConfigurationVersion
The Version string of the Configuration version built.
static MasterVersionsAttribute Instance
Return the Assembly's instance of the MasterVersionsAttribute.