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)
8986int port = svc.AllocatedPort!.Value; 9107Assert.Equal($"https://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.AllocatedPort}/path", url); 9556Assert.Equal(executableBTunnelService.AllocatedPort.ToString(), executableBPort); 9628Assert.Equal(upstreamTunnelService.AllocatedPort.ToString(), upstreamPort);