36 references to IPEndPoint
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
625
var endpoint = endpointConfiguration.ListenOptions.
IPEndPoint
!;
Microsoft.AspNetCore.Server.Kestrel.Core (7)
AnyIPListenOptions.cs (5)
20
Debug.Assert(
IPEndPoint
!= null);
33
context.Logger.LogTrace(ex, CoreStrings.FailedToBindToIPv6Any,
IPEndPoint
.Port);
37
context.Logger.LogDebug(CoreStrings.FallbackToIPv4Any,
IPEndPoint
.Port,
IPEndPoint
.Port);
41
EndPoint = new IPEndPoint(IPAddress.Any,
IPEndPoint
.Port);
ListenOptions.cs (1)
236
var options = new ListenOptions(new IPEndPoint(address,
IPEndPoint
!.Port))
LocalhostListenOptions.cs (1)
26
return $"{Scheme}://localhost:{
IPEndPoint
!.Port}";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
AddressBinderTests.cs (10)
59
Assert.Equal(IPAddress.IPv6Any, listenOptions.
IPEndPoint
.Address);
60
Assert.Equal(80, listenOptions.
IPEndPoint
.Port);
70
Assert.Equal(IPAddress.Loopback, listenOptions.
IPEndPoint
.Address);
71
Assert.Equal(80, listenOptions.
IPEndPoint
.Port);
82
Assert.Equal(8080, listenOptions.
IPEndPoint
.Port);
150
Assert.Equal(IPAddress.Parse(ip), listenOptions.
IPEndPoint
.Address);
151
Assert.Equal(port, listenOptions.
IPEndPoint
.Port);
267
if (endpoint.
IPEndPoint
.Address.Equals(IPAddress.IPv6Any))
273
if (endpoint.
IPEndPoint
.Address.Equals(IPAddress.Any))
314
Assert.Contains(endpoints, e => e.
IPEndPoint
.Port == 5000 && !e.IsTls);
Microsoft.AspNetCore.Server.Kestrel.Tests (14)
KestrelConfigurationLoaderTests.cs (14)
72
Assert.Equal(5001, serverOptions.ConfigurationBackedListenOptions[0].
IPEndPoint
.Port);
90
Assert.Equal(5001, serverOptions.CodeBackedListenOptions[0].
IPEndPoint
.Port);
108
Assert.Equal(5001, serverOptions.CodeBackedListenOptions[0].
IPEndPoint
.Port);
114
Assert.Equal(5001, serverOptions.CodeBackedListenOptions[0].
IPEndPoint
.Port);
144
Assert.Equal(5002, serverOptions.ConfigurationBackedListenOptions[0].
IPEndPoint
.Port);
145
Assert.Equal(5003, serverOptions.CodeBackedListenOptions[0].
IPEndPoint
.Port);
1477
Assert.Equal(5000, serverOptions.ConfigurationBackedListenOptions[0].
IPEndPoint
.Port);
1478
Assert.Equal(5001, serverOptions.ConfigurationBackedListenOptions[1].
IPEndPoint
.Port);
1490
Assert.Equal(5001, endpointsToStop[0].
IPEndPoint
.Port);
1493
Assert.Equal(5002, endpointsToStart[0].
IPEndPoint
.Port);
1494
Assert.Equal(5003, endpointsToStart[1].
IPEndPoint
.Port);
1497
Assert.Equal(5000, serverOptions.ConfigurationBackedListenOptions[0].
IPEndPoint
.Port);
1530
Assert.Equal(5000, stopEndpoint.
IPEndPoint
.Port);
1533
Assert.Equal(5000, startEndpoint.
IPEndPoint
.Port);
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
125
public int Port => _listenOptions.
IPEndPoint
?.Port ?? 0;
143
return new TestConnection(Port, _listenOptions.
IPEndPoint
.AddressFamily);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
125
public int Port => _listenOptions.
IPEndPoint
?.Port ?? 0;
143
return new TestConnection(Port, _listenOptions.
IPEndPoint
.AddressFamily);