22 instantiations of DnsEndPoint
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
176socketArgs.RemoteEndPoint = new DnsEndPoint(requestUri.DnsSafeHost, requestUri.Port);
Microsoft.Extensions.ServiceDiscovery (3)
Configuration\ConfigurationServiceEndpointProvider.cs (1)
213endPoint = new DnsEndPoint(uri.Host, port);
PassThrough\PassThroughServiceEndpointProviderFactory.cs (2)
22endPoint = new DnsEndPoint(serviceName, 0); 57endPoint = new DnsEndPoint(host, port);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
DnsSrvServiceEndpointResolverTests.cs (4)
122Assert.Equal(new DnsEndPoint("remotehost", 7777), eps[2].EndPoint); 214Assert.Equal(new DnsEndPoint("remotehost", 7777), eps[2].EndPoint); 227Assert.Equal(new DnsEndPoint("localhost", 8080), initialResult.EndpointSource.Endpoints[0].EndPoint); 228Assert.Equal(new DnsEndPoint("remotehost", 9090), initialResult.EndpointSource.Endpoints[1].EndPoint);
Microsoft.Extensions.ServiceDiscovery.Tests (8)
ConfigurationServiceEndpointResolverTests.cs (3)
44Assert.Equal(new DnsEndPoint("localhost", 8080), ep.EndPoint); 370Assert.Equal(new DnsEndPoint("localhost", 2222), initialResult.EndpointSource.Endpoints[0].EndPoint); 417Assert.Equal(new DnsEndPoint("localhost", 2222), initialResult.EndpointSource.Endpoints[0].EndPoint);
PassThroughServiceEndpointResolverTests.cs (3)
39Assert.Equal(new DnsEndPoint("basket", 80), ep.EndPoint); 105Assert.Equal(new DnsEndPoint("catalog", 80), initialResult.EndpointSource.Endpoints[0].EndPoint); 128Assert.Equal(new DnsEndPoint("catalog", 0), result.Endpoints[0].EndPoint);
ServiceEndpointTests.cs (2)
14new DnsEndPoint("microsoft.com", 0), 21new DnsEndPoint("microsoft.com", 8443),
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
99P9 = new DnsEndPoint("microsoft.com", 42),
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
67socketArgs.RemoteEndPoint = new DnsEndPoint(hostName, port);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
67socketArgs.RemoteEndPoint = new DnsEndPoint(hostName, port);
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
664var endPoint = new DnsEndPoint(host, port);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
273QuicConnection quicConnection = await ConnectHelper.ConnectQuicAsync(queueItem.Request, new DnsEndPoint(authority.IdnHost, authority.Port), _poolManager.Settings._pooledConnectionIdleTimeout, _sslOptionsHttp3!, connection.StreamCapacityCallback, cts.Token).ConfigureAwait(false);
System.Net.Sockets (1)
System\Net\Sockets\Socket.Tasks.cs (1)
244new DnsEndPoint(host, port);
28 references to DnsEndPoint
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
146else if (command.EndPoint is DnsEndPoint dnsEndPoint)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
RedisDependencyInjectionExtensionsTests.cs (2)
34var dnsEndpoint = Assert.IsType<DnsEndPoint>(endpoint);
Microsoft.Extensions.ServiceDiscovery (1)
Http\ResolvingHttpDelegatingHandler.cs (1)
93case DnsEndPoint dns:
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
Internal\ServiceEndpointImpl.cs (2)
19DnsEndPoint dns when dns.Port == 0 => $"{dns.Host}", 20DnsEndPoint dns => $"{dns.Host}:{dns.Port}",
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
26public DnsEndPoint? P9 { get; set; }
netstandard (1)
netstandard.cs (1)
1080[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.DnsEndPoint))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
607[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.DnsEndPoint))]
System.Net (1)
System.Net.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.DnsEndPoint))]
System.Net.Http (5)
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
115public static async ValueTask<QuicConnection> ConnectQuicAsync(HttpRequestMessage request, DnsEndPoint endPoint, TimeSpan idleTimeout, SslClientAuthenticationOptions clientAuthenticationOptions, Action<QuicConnection, QuicStreamCapacityChangedArgs> streamCapacityCallback, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
664var endPoint = new DnsEndPoint(host, port);
System\Net\Http\SocketsHttpHandler\SocketsHttpConnectionContext.cs (3)
11private readonly DnsEndPoint _dnsEndPoint; 14internal SocketsHttpConnectionContext(DnsEndPoint dnsEndPoint, HttpRequestMessage initialRequestMessage) 23public DnsEndPoint DnsEndPoint => _dnsEndPoint;
System.Net.Primitives (1)
System\Net\DnsEndPoint.cs (1)
37comparand is DnsEndPoint dnsComparand &&
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicHelpers.cs (1)
17if (endPoint is DnsEndPoint dnsEndPoint)
System\Net\Quic\QuicConnectionOptions.cs (1)
189/// The remote endpoint to connect to. May be both <see cref="DnsEndPoint"/>, which will get resolved to an IP before connecting, or directly <see cref="IPEndPoint"/>.
System.Net.Sockets (10)
System\Net\Sockets\Socket.cs (9)
853DnsEndPoint? dnsEP = remoteEP as DnsEndPoint; 2903DnsEndPoint? dnsEP = endPointSnapshot as DnsEndPoint; 2999DnsEndPoint? dnsEP = endPointSnapshot as DnsEndPoint; 3097if (endPointSnapshot is DnsEndPoint) 3343else if (remoteEP is DnsEndPoint) 3958if (remoteEndPoint is DnsEndPoint)
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
680internal bool DnsConnectAsync(DnsEndPoint endPoint, SocketType socketType, ProtocolType protocolType)