13 references to AllocatedPort
Aspire.Hosting (4)
Dcp\DcpModelUtilities.cs (3)
170
var allocatedPort = svc.
AllocatedPort
?? fallbackPort;
264
(int)sp.DcpResource.
AllocatedPort
!,
326
var port = (int)ts.Service!.
AllocatedPort
!;
Dcp\Model\Service.cs (1)
91
public bool HasCompleteAddress =>
AllocatedPort
> 0 && !string.IsNullOrEmpty(AllocatedAddress);
Aspire.Hosting.Tests (9)
Dcp\DcpExecutorTests.cs (9)
9656
int port = svc.
AllocatedPort
!.Value;
9777
Assert.Equal($"https://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.
AllocatedPort
}/path", url);
10232
$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.
AllocatedPort
}",
10282
tunnelService.
AllocatedPort
.ToString(),
10319
tunnelService.
AllocatedPort
.ToString(),
10359
tunnelService.
AllocatedPort
.ToString(),
10568
tunnelService.
AllocatedPort
.ToString(),
10732
Assert.Equal(executableBTunnelService.
AllocatedPort
.ToString(), executableBPort);
10804
Assert.Equal(upstreamTunnelService.
AllocatedPort
.ToString(), upstreamPort);