10 references to GetPort
Sockets.BindTests (10)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IHostPortExtensions.cs (1)
36return $"{scheme}://127.0.0.1:{host.GetPort().ToString(CultureInfo.InvariantCulture)}/";
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (9)
203foreach (var testUrl in testUrls.Select(testUrl => $"{testUrl}:{(testPort == 0 ? host.GetPort() : testPort)}")) 261var expectedUrl = $"https://127.0.0.1:{host.GetPort()}"; 328var testUrlWithPort = $"{testUrl}:{(testPort == 0 ? host.GetPort() : testPort)}"; 386foreach (var testUrl in testUrls.Select(testUrl => $"{testUrl}:{(testPort == 0 ? host.GetPort() : testPort)}")) 433foreach (var testUrl in testUrls.Select(testUrl => $"{testUrl}:{(testPort == 0 ? host.GetPort() : testPort)}")) 520Assert.Equal(5000, host.GetPort()); 628var port = host.GetPort(); 673var port = host.GetPort(); 714var port = host.GetPort();