Skip to content
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

Convey.HTTP.RestEase Multiple Service Clients #38

Open
FloodCreux opened this issue Apr 11, 2020 · 1 comment
Open

Convey.HTTP.RestEase Multiple Service Clients #38

FloodCreux opened this issue Apr 11, 2020 · 1 comment

Comments

@FloodCreux
Copy link

I have an API layer that I want to call multiple different services with Fabio and to do that I want to spin up a few Service clients. It looks like there is no way to do that currently? I remember there being a way to register multiple service forwarders in some of the DNC DShop examples.

@FloodCreux
Copy link
Author

It appears that you can only add a single service client per project but that won't work for an API layer with multiple services to call. Maybe I am doing something incorrectly but having something like this in a program file will spin up the first service and ignore the second service:

.AddServiceClient<IXService>("x-service")
.AddServiceClient<IYService>("y-service")

If I had to guess, it would possibly be because the RegistryName is always http.restEase and that when it goes to register a new service, that name has already been registered... maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant