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