1 write to Port
Aspire.Hosting (1)
ApplicationModel\AllocatedEndpoint.cs (1)
64Port = port;
11 references to Port
Aspire.Hosting (9)
ApplicationModel\AllocatedEndpoint.cs (1)
127public string EndPointString => $"{Address}:{Port}";
ApplicationModel\EndpointReference.cs (3)
108public int Port => AllocatedEndpoint.Port; 309EndpointProperty.Port => new(allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)), 311EndpointProperty.HostAndPort => new($"{allocatedEndpoint.Address}:{allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)}"),
Dcp\DcpExecutor.cs (1)
989var port = _options.Value.EnableAspireContainerTunnel ? (int)ts.Service!.AllocatedPort! : serverSvc.EndpointAnnotation.AllocatedEndpoint!.Port;
Devcontainers\DevcontainerPortForwardingLifecycleHook.cs (1)
45endpoint.AllocatedEndpoint!.Port,
Orchestrator\ApplicationOrchestrator.cs (3)
250Url = $"{allocatedEndpoint.UriScheme}://{endpoint.TargetHost}:{allocatedEndpoint.Port}", 259Url = $"{allocatedEndpoint.UriScheme}://{Environment.MachineName}:{allocatedEndpoint.Port}", 291Url = $"{allocatedEndpoint.UriScheme}://{resource.Name.ToLowerInvariant()}-{subdomainSuffix}.dev.localhost:{allocatedEndpoint.Port}",
Aspire.Hosting.Tests (2)
SlimTestProgramTests.cs (2)
60Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.Port); 79Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.Port);