Minimal repo using what appears to be the recommended way to use Refit with Blazor.
However, it doesn't work. The error is:
InvalidOperationException: Cannot provide a value for property 'WeatherApi' on type 'BlazorWithRefit.Client.Pages.Weather'. There is no registered service of type 'BlazorWithRefit.Client.IWeatherApi'.
- Clone the repo
- Navigate to the repo directory
dotnet run --project .\BlazorWithRefit\
- Open a browser and navigate to https://localhost:7290
- Click the "Weather" link in the nav bar