Skip to content
Discussion options

You must be logged in to vote

By default, when you add a project resource, we read your launch profile and add endpoints. Using this should still work fine:

.WithEndpoint(scheme: "http", hostPort: 5000, isProxied: false)

I understand this was defining a endpoint that isn't proxied (ie Aspire doesn't generate any URL for it) and binds to host port (which I dynamically change in my service).

Non proxied endpoints means that you need to specify the port.

However, I don't have the same flexibility with new implementation of WithEndpoint in preview 5 ?
There's port and targetPort, but that doesn't seem to work unless I disable launch profile thing as per comment in GH Issue.

If you don't disable the launch profile, we…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@murh-lego
Comment options

Answer selected by davidfowl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants