13 references to AllocatedPort
Aspire.Hosting (4)
Dcp\DcpModelUtilities.cs (3)
170var allocatedPort = svc.AllocatedPort ?? fallbackPort; 264(int)sp.DcpResource.AllocatedPort!, 326var 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)
9656int port = svc.AllocatedPort!.Value; 9777Assert.Equal($"https://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}/path", url); 10232$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}", 10282tunnelService.AllocatedPort.ToString(), 10319tunnelService.AllocatedPort.ToString(), 10359tunnelService.AllocatedPort.ToString(), 10568tunnelService.AllocatedPort.ToString(), 10732Assert.Equal(executableBTunnelService.AllocatedPort.ToString(), executableBPort); 10804Assert.Equal(upstreamTunnelService.AllocatedPort.ToString(), upstreamPort);