8 references to AllocatedPort
Aspire.Hosting (4)
Dcp\DcpModelUtilities.cs (3)
165var allocatedPort = svc.AllocatedPort ?? fallbackPort; 259(int)sp.DcpResource.AllocatedPort!, 321var port = (int)ts.Service!.AllocatedPort!;
Dcp\Model\Service.cs (1)
91public bool HasCompleteAddress => AllocatedPort > 0 && !string.IsNullOrEmpty(AllocatedAddress);
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (4)
8879int port = svc.AllocatedPort!.Value; 9000Assert.Equal($"https://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}/path", url); 9449Assert.Equal(executableBTunnelService.AllocatedPort.ToString(), executableBPort); 9521Assert.Equal(upstreamTunnelService.AllocatedPort.ToString(), upstreamPort);