Skip to content

Commit 3e83d09

Browse files
committed
fix
1 parent cd57c8e commit 3e83d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/OutputCaching/src/OutputCacheServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static IServiceCollection AddOutputCache(this IServiceCollection services
2626

2727
services.AddTransient<IConfigureOptions<OutputCacheOptions>, OutputCacheOptionsSetup>();
2828

29-
services.TryAddTransient<ObjectPoolProvider, DefaultObjectPoolProvider>();
29+
services.TryAddSingleton<ObjectPoolProvider, DefaultObjectPoolProvider>();
3030
services.TryAddTransient<IOutputCachePolicyProvider, DefaultOutputCachePolicyProvider>();
3131

3232
services.TryAddSingleton<IOutputCacheStore>(sp =>

0 commit comments

Comments
 (0)