46 references to UriHostNameType
Aspire.Microsoft.Data.SqlClient (3)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (3)
182var uriHostNameType = Uri.CheckHostName(serverHostName); 183if (uriHostNameType == UriHostNameType.IPv4 || uriHostNameType == UriHostNameType.IPv6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (3)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (3)
182var uriHostNameType = Uri.CheckHostName(serverHostName); 183if (uriHostNameType == UriHostNameType.IPv4 || uriHostNameType == UriHostNameType.IPv6)
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (2)
484if (uri.HostNameType == UriHostNameType.IPv4 || 485uri.HostNameType == UriHostNameType.IPv6)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
314if (originalUri.HostNameType == UriHostNameType.IPv6)
InMemory.FunctionalTests (1)
TestTransport\InMemoryHttpClientSlim.cs (1)
51if (requestUri.HostNameType == UriHostNameType.IPv6)
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
50if (requestUri.HostNameType == UriHostNameType.IPv6)
netstandard (1)
netstandard.cs (1)
2228[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriHostNameType))]
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
210if (uri.HostNameType == UriHostNameType.IPv6)
System (1)
src\libraries\shims\System\ref\System.cs (1)
928[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriHostNameType))]
System.Net.Http (5)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (3)
137UriHostNameType hnt = authUri.HostNameType; 138if (hnt == UriHostNameType.IPv6 || hnt == UriHostNameType.IPv4)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
27if (uri.HostNameType == UriHostNameType.IPv6)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
402string host = requestUri.HostNameType == UriHostNameType.IPv6 ? requestUri.Host : requestUri.IdnHost;
System.Net.HttpListener (4)
System\Net\Managed\HttpEndPointManager.cs (1)
96if (lp.Host != "*" && lp.Host != "+" && Uri.CheckHostName(lp.Host) == UriHostNameType.Unknown)
System\Net\ServiceNameStore.cs (3)
51UriHostNameType hostType = Uri.CheckHostName(hostPortAndDistinguisher); 52if (hostType == UriHostNameType.Unknown) 89if (hostType != UriHostNameType.Dns)
System.Net.Security (3)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (3)
189UriHostNameType hostType = Uri.CheckHostName(hostPortAndDistinguisher); 190if (hostType == UriHostNameType.Unknown) 230if (hostType != UriHostNameType.Dns)
System.Private.Uri (16)
System\Uri.cs (16)
774public UriHostNameType HostNameType 793case Flags.DnsHostType: return UriHostNameType.Dns; 794case Flags.IPv4HostType: return UriHostNameType.IPv4; 795case Flags.IPv6HostType: return UriHostNameType.IPv6; 796case Flags.BasicHostType: return UriHostNameType.Basic; 797case Flags.UncHostType: return UriHostNameType.Basic; 798case Flags.UnknownHostType: return UriHostNameType.Unknown; 802return UriHostNameType.Unknown; 1264public static UriHostNameType CheckHostName(string? name) 1268return UriHostNameType.Unknown; 1281return UriHostNameType.IPv6; 1288return UriHostNameType.IPv4; 1294return UriHostNameType.Dns; 1299return UriHostNameType.Dns; 1310return UriHostNameType.IPv6; 1314return UriHostNameType.Unknown;
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
858[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriHostNameType))]
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
1271UriHostNameType kind = Uri.CheckHostName(hostname); 1273if (kind != UriHostNameType.Dns)
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
122if (originalUri.HostNameType == UriHostNameType.IPv6)