tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
TelemetryAppSerializedKeyAttribute.cs
Go to the documentation of this file.
1using System;
2using System.Reflection;
3
5{
9 [AttributeUsage(AttributeTargets.Assembly)]
11 {
16 .GetExecutingAssembly()
17 .GetCustomAttribute<TelemetryAppSerializedKeyAttribute>();
18
22 public string SerializedKey { get; }
23
28 public TelemetryAppSerializedKeyAttribute(string serializedKey)
29 {
30 SerializedKey = serializedKey ?? throw new ArgumentNullException(nameof(serializedKey));
31 }
32 }
33}
Attribute for bundling the GitHub App serialized private key used for version telemetry.
TelemetryAppSerializedKeyAttribute(string serializedKey)
Initializes a new instance of the TelemetryAppSerializedKeyAttribute class.
static ? TelemetryAppSerializedKeyAttribute Instance
Return the Assembly's instance of the TelemetryAppSerializedKeyAttribute.
string SerializedKey
The serialized GitHub App Client ID and private key.