16 references to LocalhostEndpoint
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelConfigurationLoader.cs (1)
131
public KestrelConfigurationLoader LocalhostEndpoint(int port) =>
LocalhostEndpoint
(port, options => { });
Microsoft.AspNetCore.Server.Kestrel.Tests (15)
KestrelConfigurationLoaderTests.cs (15)
83
.
LocalhostEndpoint
(5001, endpointOptions => run = true);
128
.
LocalhostEndpoint
(5001, endpointOptions => run1 = true);
139
.
LocalhostEndpoint
(5003, endpointOptions => run2 = true);
185
.
LocalhostEndpoint
(5002, opt =>
227
.
LocalhostEndpoint
(5002, opt =>
1078
.
LocalhostEndpoint
(5002, opt =>
1730
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5000 + i, _ => numEndpointsAdded++);
1743
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(6000 + i, _ => numEndpointsAdded++);
1761
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5000, _ => numEndpointsAdded++);
1762
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5001, _ => throw new InvalidOperationException());
1763
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5002, _ => numEndpointsAdded++);
1795
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added after ProcessEndpointsToAdd"));
1818
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added after Load"));
1830
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added by LoadInternal"));
1843
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added by Reload"));