Files
tgstation-server/TGServiceInterface/InstanceMetadata.cs
T
Cyberboss 8db5ecb26d Heavy instancing work
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
2017-10-31 16:55:01 -04:00

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; }
}
}