|
|
|
|
@ -24,7 +24,7 @@ namespace GBase.Api.Communication |
|
|
|
|
case ServerProtocol.Https: |
|
|
|
|
return @"https://"; |
|
|
|
|
case ServerProtocol.Tcp: |
|
|
|
|
throw new NotImplementedException(); |
|
|
|
|
return @"net.tcp://"; |
|
|
|
|
default: |
|
|
|
|
throw new ArgumentOutOfRangeException(nameof(protocol), protocol, "Invalid Protocol"); |
|
|
|
|
} |
|
|
|
|
@ -36,6 +36,8 @@ namespace GBase.Api.Communication |
|
|
|
|
return ServerProtocol.Http; |
|
|
|
|
else if (@string.Equals(@"https://") || @string.Equals("https")) |
|
|
|
|
return ServerProtocol.Https; |
|
|
|
|
else if (@string.Equals(@"net.tcp://") || @string.Equals("net.tcp") || @string.Equals("tcp")) |
|
|
|
|
return ServerProtocol.Tcp; |
|
|
|
|
else |
|
|
|
|
throw new ArgumentOutOfRangeException(nameof(@string), @string, "Invalid string."); |
|
|
|
|
} |
|
|
|
|
|