-
Notifications
You must be signed in to change notification settings - Fork 880
Service discovery on MapForwarder
disabled when httpClient
is assigned
#2838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
IIRC Aspire sets up its own HttpClientFactory that has service discovery hooked up. @ReubenBond - If they get an instance of HttpClient from the default HttpClientFactory, can they then set properties on it before handing to YARP. |
If you want to have service discovery on a custom client, you can wrap it in the same way Aspire does it for you by default: get |
It seems that good workaround. But I feel that current behavior is inconsistent. Whether service discovery is enabled on Yarp should not depend on whether |
I see it as the same scenario as when you're using the regular Have you tried using |
How could we call |
Ah yeah nvm, it wouldn't help you with |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
api
service.ASSIGN_HTTP_CLIENT
.Further technical details
The text was updated successfully, but these errors were encountered: