Replies: 5 comments 2 replies
-
gRPC is still http from a service binding / service discovery point of view, so you've got a resource that exposes two http endpoints. Because the scheme ("http") is used as the endpoint name by default, you'll need to disambiguate them by naming the endpoints. You can keep one as just "http" but the other will need an explicit name. I suggest keeping the gRPC endpoint as the default "http" endpoint so that consuming apps don't need to specify the endpoint name to resolve "http://temporal-server", and explicitly name the UI endpoint as "ui" or similar. |
Beta Was this translation helpful? Give feedback.
-
Also see https://learn.microsoft.com/dotnet/aspire/service-discovery/overview for more information but this document needs some updates to better cover your scenario. |
Beta Was this translation helpful? Give feedback.
-
Thanks! Two quick questions, in the code below,
Thanks again, I know this is probably somewhere in the documentation but I'm a bit slow. 8) |
Beta Was this translation helpful? Give feedback.
-
As a follow up to this, here's the doc that describes how networking works https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/networking-overview |
Beta Was this translation helpful? Give feedback.
-
@jakenuts is this something you've published a nuget for? I was just about to make this :) |
Beta Was this translation helpful? Give feedback.
-
I'm trying to create a resource for the Temporal.io dev server which launches an backend server and a monitoring ui.
I'm at the point where the server is launched, the url for the UI is available in the Aspire dashboard, but I can't determine the proper way to pass the server endpoint to consuming projects or why the default ports I'm providing (7233, 8233) are being ignored. As the temporal client doesn't accept an HttpClient (it's grpc?) the usual samples don't seem to fit.
Any ideas what's wrong/right here?
Thanks!! 8)
The extension method
The AppHost setup
The resource (prolly don't need the connection string bit)
When I run this I get these in the dependant apps
Web
Worker
Aspire Dashboard
Beta Was this translation helpful? Give feedback.
All reactions