You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2018. It is now read-only.
But I would like to use the IHttpClientFactory like this:
startup.cs
services.AddHttpClient("named", c =>{c.BaseAddress=newUri("TODO");c.DefaultRequestHeaders.Accept.Add(newMediaTypeWithQualityHeaderValue("application/json"));c.DefaultRequestHeaders.CacheControl=newCacheControlHeaderValue{NoCache=true,NoStore=true,MaxAge=newTimeSpan(0),MustRevalidate=true};});
How can I pass the HttpClientHandler to the named HttpClient. I was not able to find this. Any hints on how to achieve this?