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