Skip to content

Refit configuration to consume an API does not work #827

Open
@SpiderArrow

Description

@SpiderArrow

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions