mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
Added InstanceRootCommand for blocking instance based commands if no instance is chosen CLI now prints the service version Added service level CLI commands Fixed Service.LockLoggingID Added InstanceMetadata DataContract Implemented Service.ListInstances ExitCode is now set to int parent type Fixed ConnectivityLevel flags Optimized channel closing during instance switching
33 lines
879 B
C#
33 lines
879 B
C#
using System.Runtime.Serialization;
|
|
|
|
namespace TGServiceInterface
|
|
{
|
|
/// <summary>
|
|
/// Metadata about an <see cref="Components.ITGInstance"/>
|
|
/// </summary>
|
|
[DataContract]
|
|
public sealed class InstanceMetadata
|
|
{
|
|
/// <summary>
|
|
/// The name of the <see cref="Components.ITGInstance"/>
|
|
/// </summary>
|
|
[DataMember]
|
|
public string Name { get; set; }
|
|
/// <summary>
|
|
/// The path of the <see cref="Components.ITGInstance"/>
|
|
/// </summary>
|
|
[DataMember]
|
|
public string Path { get; set; }
|
|
/// <summary>
|
|
/// Whether or not the <see cref="Components.ITGInstance"/> is enabled
|
|
/// </summary>
|
|
[DataMember]
|
|
public bool Enabled { get; set; }
|
|
/// <summary>
|
|
/// The logging ID of the <see cref="Components.ITGInstance"/>. Will be 0 if <see cref="Enabled"/> is <see langword="false"/>
|
|
/// </summary>
|
|
[DataMember]
|
|
public byte LoggingID { get; set; }
|
|
}
|
|
}
|