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