7 references to TargetPort
Aspire.Hosting (7)
ApplicationModel\EndpointReference.cs (2)
57EndpointProperty.TargetPort => "targetPort", 179EndpointProperty.TargetPort => new(ComputeTargetPort()),
ApplicationModel\ExpressionResolver.cs (1)
69(EndpointProperty.Port, true, true) => await endpointReference.Property(EndpointProperty.TargetPort).GetValueAsync(cancellationToken).ConfigureAwait(false),
ProjectResourceBuilderExtensions.cs (3)
679aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{targetHost}:{e.Property(EndpointProperty.TargetPort)}"); 724ports.Append($"{e.Property(EndpointProperty.TargetPort)}"); 756var url = ReferenceExpression.Create($"{e.EndpointAnnotation.UriScheme}://{host}:{e.Property(EndpointProperty.TargetPort)}");
ResourceBuilderExtensions.cs (1)
544context.EnvironmentVariables[env] = endpointReference.Property(EndpointProperty.TargetPort);