From e57c0eb1ab6b1873cb86cc37c81777307600b512 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Mon, 10 Feb 2020 14:39:45 +0100 Subject: [PATCH] - add serverProtocolEndpointAddress to settings --- GBase.Client/GBaseClientSettings.cs | 1 + GBase.Client/Interfaces/IGBaseClientSettings.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GBase.Client/GBaseClientSettings.cs b/GBase.Client/GBaseClientSettings.cs index e4c02ce..fedddab 100644 --- a/GBase.Client/GBaseClientSettings.cs +++ b/GBase.Client/GBaseClientSettings.cs @@ -22,5 +22,6 @@ namespace GBase.Client public IPAddress IpAddress { get; } public int Port { get; } public string Endpoint { get; } + public string ServerProtocolEndpointAddress => @$"{Protocol.GetProtocolString()}{IpAddress}:{Port}{Endpoint}"; } } \ No newline at end of file diff --git a/GBase.Client/Interfaces/IGBaseClientSettings.cs b/GBase.Client/Interfaces/IGBaseClientSettings.cs index cc326b4..36111a3 100644 --- a/GBase.Client/Interfaces/IGBaseClientSettings.cs +++ b/GBase.Client/Interfaces/IGBaseClientSettings.cs @@ -8,6 +8,6 @@ namespace GBase.Client.Interfaces { public interface IGBaseClientSettings : ICommunicationSettings { - + string ServerProtocolEndpointAddress { get; } } } \ No newline at end of file