public string BuildSimpleServiceName(string uriPrefix) { string hostname = ExtractHostname(uriPrefix, false); if (hostname != null) { return "HTTP/" + hostname; } else { return null; } }