1 write to Port
Aspire.Hosting (1)
ApplicationModel\AllocatedEndpoint.cs (1)
64Port = port;
15 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 (1)
MauiOtlpExtensions.cs (1)
217target = new OtlpEndpointTarget(allocatedEndpoint.UriScheme, allocatedEndpoint.Port);
Aspire.Hosting.Tests (6)
Dcp\DcpExecutorTests.cs (3)
1133Assert.Equal(allocatedPort, endpoint.AllocatedEndpoint?.Port); 3762allocatedPortChannel.Writer.TryWrite(allocatedEndpoint.Port); 8924Assert.Equal(port, allocatedEndpoint.Port);
DistributedApplicationTests.cs (1)
1703Assert.InRange(allocatedEndpoint.Port, 10000, 32767);
SlimTestProgramTests.cs (2)
61Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.Port); 80Assert.Equal(endpoint.Port, endpoint.AllocatedEndpoint.Port);