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