tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Properties
TelemetryAppSerializedKeyAttribute.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Reflection;
3
4
namespace
Tgstation.Server.Host.Properties
5
{
9
[AttributeUsage(AttributeTargets.Assembly)]
10
sealed
class
TelemetryAppSerializedKeyAttribute
:
Attribute
11
{
15
public
static
TelemetryAppSerializedKeyAttribute
?
Instance
=> Assembly
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
Tgstation.Server.Host.Properties.TelemetryAppSerializedKeyAttribute
Attribute for bundling the GitHub App serialized private key used for version telemetry.
Definition
TelemetryAppSerializedKeyAttribute.cs:11
Tgstation.Server.Host.Properties.TelemetryAppSerializedKeyAttribute.TelemetryAppSerializedKeyAttribute
TelemetryAppSerializedKeyAttribute(string serializedKey)
Initializes a new instance of the TelemetryAppSerializedKeyAttribute class.
Definition
TelemetryAppSerializedKeyAttribute.cs:28
Tgstation.Server.Host.Properties.TelemetryAppSerializedKeyAttribute.Instance
static ? TelemetryAppSerializedKeyAttribute Instance
Return the Assembly's instance of the TelemetryAppSerializedKeyAttribute.
Definition
TelemetryAppSerializedKeyAttribute.cs:15
Tgstation.Server.Host.Properties.TelemetryAppSerializedKeyAttribute.SerializedKey
string SerializedKey
The serialized GitHub App Client ID and private key.
Definition
TelemetryAppSerializedKeyAttribute.cs:22
Tgstation.Server.Host.Properties
Definition
MasterVersionsAttribute.cs:5
Generated by
1.9.8