18 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 (14)
Dcp\DcpExecutorTests.cs (14)
10868int port = svc.AllocatedPort!.Value; 10960$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{exporterService.AllocatedPort}", 11044var expectedUrl = $"http://{KnownHostNames.DefaultContainerTunnelHostName}:{referencedService.AllocatedPort}"; 11061Assert.Equal(referencedService.AllocatedPort.ToString(), Assert.Single(dcpContainer.Spec.Env, variable => variable.Name == "DASHBOARD_PORT").Value); 11173$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{uiService.AllocatedPort}", 11198$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}", 11350Assert.Equal($"https://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}/path", url); 12034$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}", 12084tunnelService.AllocatedPort.ToString(), 12121tunnelService.AllocatedPort.ToString(), 12161tunnelService.AllocatedPort.ToString(), 12370tunnelService.AllocatedPort.ToString(), 12588Assert.Equal(executableBTunnelService.AllocatedPort.ToString(), executableBPort); 12660Assert.Equal(upstreamTunnelService.AllocatedPort.ToString(), upstreamPort);