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

Refit configuration to consume an API does not work #827

Open
SpiderArrow opened this issue Sep 26, 2024 · 0 comments
Open

Refit configuration to consume an API does not work #827

SpiderArrow opened this issue Sep 26, 2024 · 0 comments

Comments

@SpiderArrow
Copy link

Hi, I have been working on a project where I wanted to consume an API and I followed the steps in the Uno documentation (Use Refit) to use Refit but for some reason the dependency injection doesn't work.
This is my view model
image
my endpoint
image
my appsettings
image
my service configuration
image
my route configuration
image
my button in the Main that navigates to the Employees page
image
my command
image

I added a breakpoint in the constructor of EmpViewModel but it doesn't stop the execution, when I remove the ID from my endpoint it stops.

What could be the cause of the dependency injection not working correctly?

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