Service Discovery for custom container #7399
-
I tried to build in a custom container in my Aspire project, but the service discovery to the container is not working. I followed the custom hosting integration example in the Aspire docs. Other integrations seems to work, so something is missing or something is fundamentally wrong with my solution. My Stackoverflow question: My git repo demonstrating my problem: What could be the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
IResourceWithConnectionString
is different toIResourceWithServiceDiscovery
. See https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/app-host-overview?tabs=docker#connection-string-and-endpoint-references for the format, but depending on what your custom resource implements, you'll end up with either a connection string resource or something that looks like a url (which the service discovery system wants).