Browse Source

set 10 min as the lifetime for each HttpMessageHandler int the pool

pull/632/head
Cesar De la Torre Llorente 6 years ago
parent
commit
01a1d65308
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Web/WebMVC/Startup.cs

+ 1
- 0
src/Web/WebMVC/Startup.cs View File

@ -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


Loading…
Cancel
Save