search4sound

Results 4 comments of search4sound

I agree with this idea (shouldn't have multiple HttpClients with the same base address), but it is not trivial - even if AddRefitClient called AddHttpClient(name), it would still create a...

I implemented a solution and have a PR ready. I want to make sure my solution is tied to a feature request issue description, so I did a full write-up:...

After researching this more, I think the advantages of having separate HttpClient for each refit interface type outweigh the disadvantages. The issue is the HttpMessageHandlers must not be shared or...

In the current version, does the following work for you?: ``` builder.Services.AddRefitClient() .ConfigureHttpClient(c => c.BaseAddress = new Uri("http://foo")) .AddHttpMessageHandler(() => new HttpClientDiagnosticsHandler()); ``` Replace "new HttpClientDiagnosticsHandler()" with your mocked handler....