1 write to Port
Aspire.Hosting (1)
ApplicationModel\AllocatedEndpoint.cs (1)
64Port = port;
17 references to Port
Aspire.Hosting (8)
ApplicationModel\AllocatedEndpoint.cs (1)
127public string EndPointString => $"{Address}:{Port}";
ApplicationModel\EndpointReference.cs (3)
193public int Port => AllocatedEndpoint.Port; 381EndpointProperty.Port => new(allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)), 383EndpointProperty.HostAndPort => new($"{allocatedEndpoint.Address}:{allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)}"),
Devcontainers\DevcontainerPortForwardingEventingSubscriber.cs (1)
45endpoint.AllocatedEndpoint!.Port,
Orchestrator\ApplicationOrchestrator.cs (3)
350Url = $"{allocatedEndpoint.UriScheme}://{endpoint.TargetHost}:{allocatedEndpoint.Port}", 359Url = $"{allocatedEndpoint.UriScheme}://{Environment.MachineName}:{allocatedEndpoint.Port}", 392Url = $"{allocatedEndpoint.UriScheme}://{resource.Name.ToLowerInvariant()}-{subdomainSuffix}.dev.localhost:{allocatedEndpoint.Port}",
Aspire.Hosting.Maui (2)
MauiOtlpExtensions.cs (2)
325var port = allocatedEndpoint.Port; 459allocatedEndpoint.Port,
Aspire.Hosting.Tests (7)
Dcp\DcpExecutorTests.cs (4)
1303Assert.Equal(allocatedPort, endpoint.AllocatedEndpoint?.Port); 4102Assert.Equal(TestKubernetesService.StartOfAutoPortRange, allocatedEndpoint.Port); 4248allocatedPortChannel.Writer.TryWrite(allocatedEndpoint.Port); 9468Assert.Equal(port, allocatedEndpoint.Port);
DistributedApplicationTests.cs (1)
1714Assert.InRange(allocatedEndpoint.Port, 10000, 32767);
SlimTestProgramTests.cs (2)
61Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.Port); 80Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.Port);