Skip to content
Discussion options

You must be logged in to vote

EDIT: splitting the arguments in different strings solved the issue of starting IIS, but I can't reference it in any of the other services.

Can you update the above with the working version?

EDIT2: I have no idea why it works, but .WithReference(legacy.GetEndpoint("http")) made the trick.

When you use WithReference, it'll handle making the format correct to work with service discovery (which is what the YARP resource expects at runtime, much like any other resource).

I wish I could make the port of the legacy service randomly generated at startup.

Here's where you build a custom resource and use the extensibility of the app model!

var builder = DistributedApplication.CreateBuilder(args

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kralizek
Comment options

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