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