13 references to AllocatedPort
Aspire.Hosting (4)
Dcp\DcpModelUtilities.cs (3)
212var allocatedPort = svc.AllocatedPort ?? fallbackPort; 306(int)sp.DcpResource.AllocatedPort!, 368var port = (int)ts.Service!.AllocatedPort!;
Dcp\Model\Service.cs (1)
91public bool HasCompleteAddress => AllocatedPort > 0 && !string.IsNullOrEmpty(AllocatedAddress);
Aspire.Hosting.Tests (9)
Dcp\DcpExecutorTests.cs (9)
10341int port = svc.AllocatedPort!.Value; 10467Assert.Equal($"https://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}/path", url); 10922$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}", 10972tunnelService.AllocatedPort.ToString(), 11009tunnelService.AllocatedPort.ToString(), 11049tunnelService.AllocatedPort.ToString(), 11258tunnelService.AllocatedPort.ToString(), 11422Assert.Equal(executableBTunnelService.AllocatedPort.ToString(), executableBPort); 11494Assert.Equal(upstreamTunnelService.AllocatedPort.ToString(), upstreamPort);