|
|
@ -173,6 +173,7 @@ namespace Microsoft.eShopOnContainers.WebMVC |
|
|
|
services.AddTransient<HttpClientAuthorizationDelegatingHandler>(); |
|
|
|
services.AddTransient<HttpClientRequestIdDelegatingHandler>(); |
|
|
|
|
|
|
|
//set 5 min as the lifetime for each HttpMessageHandler int the pool
|
|
|
|
services.AddHttpClient("extendedhandlerlifetime").SetHandlerLifetime(TimeSpan.FromMinutes(5)); |
|
|
|
|
|
|
|
//add http client services
|
|
|
|