I have HttpClientWrappercalledCarInformationClient
public class CarInformationClient
{
private readonly HttpClient _httpClient;
public CarInformationClient(HttpClient httpClient)
{
_httpClient = httpClient;
}
public async Task<CarInfoResponse> GetCarInfoAsync(string customerReference)
{
var request = new CarInfoRequest
{
CustomerReference = customerReference
};
var response = await _
}
}
And I register it as a singleton with Windsor
Component.For<HttpClient>().LifestyleSingleton()
As it is supposed to be HttpClientreused for calls to the same host, is this single-point implementation of g slow down if a large number of clients simulatenously calls GetCarInfoAsyncbecause there is only one instance HttpClient? I saw this question , but it does not quite answer my question.
source
share