Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

use of HttpClient #49

Open
julienGrd opened this issue Jan 9, 2020 · 0 comments
Open

use of HttpClient #49

julienGrd opened this issue Jan 9, 2020 · 0 comments

Comments

@julienGrd
Copy link

Hi Steve, and thanks for your work, its amazing again.

I try to convert my blazor app to include it in your webWindow but im facing on some problems on the dependency injection.

when it register my services where a HttpClient is inject on the constructor, there is an error (launch in a separate window)

Unable to resolve service for type "System.Net.HttpClient" While attempting to activate MyService

I try to install the package Microsoft.Extensions.Http and add services.AddHttpClient(); on the beginning of ConfigureServices in the Startup, but still not work.

You have an idea on whats happen ?

thanks !

Julien

PS : it can be nice on the error view to have a scrollbar and can select text inside. actually if the stack is too long wee don't see all the exception.

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

No branches or pull requests

1 participant