Uno.Samples
Uno.Samples copied to clipboard
Refit configuration to consume an API does not work
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
my endpoint
my appsettings
my service configuration
my route configuration
my button in the Main that navigates to the Employees page
my command
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?