Files
tgstation-server/TGS.Interface/Components/Instance.cs
T

26 lines
577 B
C#

using System.ServiceModel;
namespace TGS.Interface.Components
{
/// <summary>
/// Metadata for a server instance
/// </summary>
[ServiceContract]
public interface ITGInstance
{
/// <summary>
/// Return the directory of the server on the host machine
/// </summary>
/// <returns>The path to the directory on success, null on failure</returns>
[OperationContract]
string ServerDirectory();
/// <summary>
/// Retrieve's the service's version
/// </summary>
/// <returns>The service's version</returns>
[OperationContract]
string Version();
}
}