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