46 if (
string.IsNullOrWhiteSpace(
text2))
51 string text4 =
string.Empty;
52 string text5 =
string.Empty;
189 for (
bool flag =
false; i < uriPrefix.Length &&
uriPrefix[i] !=
'/' && (
uriPrefix[i] !=
':' || flag); i++)
205 return uriPrefix.Substring(num, i - num);
215 return "HTTP/" +
text;
229 return new string[1] {
"HTTP/" + hostName };
233 return Array.Empty<
string>();
237 return Array.Empty<
string>();
240 if (!
text.Contains(
'.'))
253 return new string[1] {
"HTTP/" +
text };
257 return new string[1] {
"HTTP/" +
text };
260 return new string[1] {
"HTTP/" +
text };
static CultureInfo InvariantCulture
static IPHostEntry GetHostEntry(IPAddress address)
static bool TryParse([NotNullWhen(true)] string? ipString, [NotNullWhen(true)] out IPAddress? address)
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
string BuildSimpleServiceName(string uriPrefix)
static string NormalizeServiceName(string inputServiceName)
bool Add(string uriPrefix)
bool Contains(string newServiceName)
string[] BuildServiceNames(string uriPrefix)
string ExtractHostname(string uriPrefix, bool allowInvalidUriStrings)
bool AddSingleServiceName(string spn)
readonly List< string > _serviceNames
bool Remove(string uriPrefix)
ServiceNameCollection ServiceNames
ServiceNameCollection _serviceNameCollection
static string net_log_listener_spn_not_remove
static string net_log_listener_spn_remove
static string Format(string resourceFormat, object p1)
static string net_log_listener_spn_add
static string net_log_listener_spn_not_add
static bool TryCreate([NotNullWhen(true)] string? uriString, UriKind uriKind, [NotNullWhen(true)] out Uri? result)
static unsafe UriHostNameType CheckHostName(string? name)
static readonly string SchemeDelimiter
static bool IsWellFormedUriString([NotNullWhen(true)] string? uriString, UriKind uriKind)
static readonly string UriSchemeHttp