private int BuildRealmPort() { int port = 0; if (int.TryParse(RealmEndpointInformation.Split(':').Last(), out port)) { return(port); } throw new InvalidOperationException($"Failed to generate Port from {RealmEndpointInformation}."); }
//TODO: Cache split realm info private IPAddress BuildRealmIP() { IPAddress address = null; if (IPAddress.TryParse(RealmEndpointInformation.Split(':').First(), out address)) { return(address); } throw new InvalidOperationException($"Failed to generate IPAddress from {RealmEndpointInformation}."); }