AddHttpClient configuration is never executed
I want to register HttpClient in DI container to use it in service to send request to other api. The
configureHttpClient
is not executed and configuration values are not set in the HttpClient and I get error that I can't send request because baseAddress
is not set.
Here I register HttpClient
for ILocationService,NominatimLocationService
Here I register services
Here is a class that implements ILocationService
And here how I use class
0 Replies