SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.99k stars 215 forks source link

use of HttpClient #49

Open julienGrd opened 4 years ago

julienGrd commented 4 years ago

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.