set 10 min as the lifetime for each HttpMessageHandler int the pool
This commit is contained in:
parent
104661d39d
commit
01a1d65308
@ -173,6 +173,7 @@ namespace Microsoft.eShopOnContainers.WebMVC
|
|||||||
services.AddTransient<HttpClientAuthorizationDelegatingHandler>();
|
services.AddTransient<HttpClientAuthorizationDelegatingHandler>();
|
||||||
services.AddTransient<HttpClientRequestIdDelegatingHandler>();
|
services.AddTransient<HttpClientRequestIdDelegatingHandler>();
|
||||||
|
|
||||||
|
//set 5 min as the lifetime for each HttpMessageHandler int the pool
|
||||||
services.AddHttpClient("extendedhandlerlifetime").SetHandlerLifetime(TimeSpan.FromMinutes(5));
|
services.AddHttpClient("extendedhandlerlifetime").SetHandlerLifetime(TimeSpan.FromMinutes(5));
|
||||||
|
|
||||||
//add http client services
|
//add http client services
|
||||||
|
Loading…
x
Reference in New Issue
Block a user