1 override of EndPoint
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Internal\ServiceEndpointImpl.cs (1)
11public override EndPoint EndPoint { get; } = endPoint;
38 references to EndPoint
Microsoft.Extensions.ServiceDiscovery (3)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
148if (ep.EndPoint is UriEndPoint uri && uri.Uri.Scheme is { } scheme) 160if (ep.EndPoint is UriEndPoint uri && uri.Uri.Scheme is { } scheme)
Http\ResolvingHttpDelegatingHandler.cs (1)
63var endPoint = serviceEndpoint.EndPoint;
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (8)
DnsSrvServiceEndpointResolverTests.cs (8)
70Assert.Equal(new IPEndPoint(IPAddress.Parse("10.10.10.10"), 8888), eps[0].EndPoint); 71Assert.Equal(new IPEndPoint(IPAddress.IPv6Loopback, 9999), eps[1].EndPoint); 72Assert.Equal(new DnsEndPoint("srv-c", 7777), eps[2].EndPoint); 151Assert.Equal(new IPEndPoint(IPAddress.Parse("10.10.10.10"), 8888), eps[0].EndPoint); 152Assert.Equal(new IPEndPoint(IPAddress.IPv6Loopback, 9999), eps[1].EndPoint); 153Assert.Equal(new DnsEndPoint("srv-c", 7777), eps[2].EndPoint); 166Assert.Equal(new DnsEndPoint("localhost", 8080), initialResult.EndpointSource.Endpoints[0].EndPoint); 167Assert.Equal(new DnsEndPoint("remotehost", 9090), initialResult.EndpointSource.Endpoints[1].EndPoint);
Microsoft.Extensions.ServiceDiscovery.Tests (27)
ConfigurationServiceEndpointResolverTests.cs (18)
44Assert.Equal(new DnsEndPoint("localhost", 8080), ep.EndPoint); 102Assert.Equal(new UriEndPoint(new Uri("https://localhost")), ep.EndPoint); 117Assert.Equal(new UriEndPoint(new Uri("https://localhost")), ep.EndPoint); 132Assert.Equal(new UriEndPoint(new Uri("https://localhost")), ep.EndPoint); 172Assert.Equal(new UriEndPoint(new Uri("https://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 194Assert.Equal(new UriEndPoint(new Uri("https://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 209Assert.Equal(new UriEndPoint(new Uri("https://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 265Assert.Equal(new UriEndPoint(new Uri(expectedResult)), initialResult.EndpointSource.Endpoints[0].EndPoint); 303Assert.Equal(new UriEndPoint(new Uri("http://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 304Assert.Equal(new UriEndPoint(new Uri("http://remotehost:9090")), initialResult.EndpointSource.Endpoints[1].EndPoint); 325Assert.Equal(new UriEndPoint(new Uri("http://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 326Assert.Equal(new UriEndPoint(new Uri("http://remotehost:9090")), initialResult.EndpointSource.Endpoints[1].EndPoint); 370Assert.Equal(new DnsEndPoint("localhost", 2222), initialResult.EndpointSource.Endpoints[0].EndPoint); 371Assert.Equal(new IPEndPoint(IPAddress.Loopback, 3333), initialResult.EndpointSource.Endpoints[1].EndPoint); 372Assert.Equal(new UriEndPoint(new Uri("http://remotehost:4444")), initialResult.EndpointSource.Endpoints[2].EndPoint); 417Assert.Equal(new DnsEndPoint("localhost", 2222), initialResult.EndpointSource.Endpoints[0].EndPoint); 418Assert.Equal(new IPEndPoint(IPAddress.Loopback, 3333), initialResult.EndpointSource.Endpoints[1].EndPoint); 421Assert.Equal(new UriEndPoint(new Uri("https://remotehost:5555")), initialResult.EndpointSource.Endpoints[2].EndPoint);
PassThroughServiceEndpointResolverTests.cs (4)
39Assert.Equal(new DnsEndPoint("basket", 80), ep.EndPoint); 72Assert.Equal(new UriEndPoint(new Uri("http://localhost:8080")), initialResult.EndpointSource.Endpoints[0].EndPoint); 105Assert.Equal(new DnsEndPoint("catalog", 80), initialResult.EndpointSource.Endpoints[0].EndPoint); 128Assert.Equal(new DnsEndPoint("catalog", 0), result.Endpoints[0].EndPoint);
ServiceEndpointResolverTests.cs (5)
117var ip = Assert.IsType<IPEndPoint>(sep.EndPoint); 130var endpoints = resolverResult.EndpointSource.Endpoints.Select(ep => ep.EndPoint).OfType<IPEndPoint>().ToList(); 166var ip = Assert.IsType<IPEndPoint>(sep.EndPoint); 203var ip = Assert.IsType<IPEndPoint>(endpoint.EndPoint); 287var ip = Assert.IsType<IPEndPoint>(sep.EndPoint);