Expose URL on IServerClient

This commit is contained in:
Cyberboss
2018-08-21 13:44:35 -04:00
parent a945d4168a
commit fda4fdf1eb
2 changed files with 8 additions and 0 deletions
@@ -10,6 +10,11 @@ namespace Tgstation.Server.Client
/// </summary>
public interface IServerClient : IDisposable
{
/// <summary>
/// The connected server <see cref="Uri"/>
/// </summary>
Uri Url { get; }
/// <summary>
/// The <see cref="Token"/> being used to access the server
/// </summary>
@@ -9,6 +9,9 @@ namespace Tgstation.Server.Client
/// <inheritdoc />
sealed class ServerClient : IServerClient
{
/// <inheritdoc />
public Uri Url => apiClient.Url;
/// <inheritdoc />
public Token Token { get; }