13 references to AllocatedPort
Aspire.Hosting (4)
Dcp\DcpModelUtilities.cs (3)
212
var allocatedPort = svc.
AllocatedPort
?? fallbackPort;
306
(int)sp.DcpResource.
AllocatedPort
!,
368
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)
10341
int port = svc.
AllocatedPort
!.Value;
10467
Assert.Equal($"https://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.
AllocatedPort
}/path", url);
10922
$"http://{KnownHostNames.DefaultContainerTunnelHostName}:{tunnelService.
AllocatedPort
}",
10972
tunnelService.
AllocatedPort
.ToString(),
11009
tunnelService.
AllocatedPort
.ToString(),
11049
tunnelService.
AllocatedPort
.ToString(),
11258
tunnelService.
AllocatedPort
.ToString(),
11422
Assert.Equal(executableBTunnelService.
AllocatedPort
.ToString(), executableBPort);
11494
Assert.Equal(upstreamTunnelService.
AllocatedPort
.ToString(), upstreamPort);