17 references to LocalhostEndpoint
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelConfigurationLoader.cs (1)
133
public KestrelConfigurationLoader LocalhostEndpoint(int port) =>
LocalhostEndpoint
(port, options => { });
Microsoft.AspNetCore.Server.Kestrel.Tests (16)
KestrelConfigurationLoaderTests.cs (16)
83
.
LocalhostEndpoint
(5001, endpointOptions => run = true);
128
.
LocalhostEndpoint
(5001, endpointOptions => run1 = true);
139
.
LocalhostEndpoint
(5003, endpointOptions => run2 = true);
185
.
LocalhostEndpoint
(5002, opt =>
254
.
LocalhostEndpoint
(5002, opt =>
1352
.
LocalhostEndpoint
(5002, opt =>
1422
.
LocalhostEndpoint
(5002, opt =>
2004
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5000 + i, _ => numEndpointsAdded++);
2017
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(6000 + i, _ => numEndpointsAdded++);
2035
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5000, _ => numEndpointsAdded++);
2036
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5001, _ => throw new InvalidOperationException());
2037
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(5002, _ => numEndpointsAdded++);
2069
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added after ProcessEndpointsToAdd"));
2092
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added after Load"));
2104
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added by LoadInternal"));
2117
serverOptions.ConfigurationLoader.
LocalhostEndpoint
(7000, _ => Assert.Fail("New endpoints should not be added by Reload"));