tgstation-server 5.12.7
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 RawControlPanelVersion { get; }
33
37 public string RawHostWatchdogVersion { get; }
38
42 public string DefaultControlPanelChannel { get; }
43
52 string rawConfigurationVersion,
53 string rawInteropVersion,
54 string rawControlPanelVersion,
55 string rawHostWatchdogVersion)
56 {
57 RawConfigurationVersion = rawConfigurationVersion ?? throw new ArgumentNullException(nameof(rawConfigurationVersion));
58 RawInteropVersion = rawInteropVersion ?? throw new ArgumentNullException(nameof(rawInteropVersion));
59 RawControlPanelVersion = rawControlPanelVersion ?? throw new ArgumentNullException(nameof(rawControlPanelVersion));
60 RawHostWatchdogVersion = rawHostWatchdogVersion ?? throw new ArgumentNullException(nameof(rawHostWatchdogVersion));
61 }
62 }
63}
Attribute for bringing in the master versions list from MSBuild that aren't embedded into assemblies ...
MasterVersionsAttribute(string rawConfigurationVersion, string rawInteropVersion, string rawControlPanelVersion, string rawHostWatchdogVersion)
Initializes a new instance of the MasterVersionsAttribute class.
string RawHostWatchdogVersion
The Version string of the control panel version built.
string RawControlPanelVersion
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.