From 0c81df859145801d2846ccbdc9af5830fa791f63 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Thu, 24 Mar 2016 15:49:20 -0700 Subject: [PATCH] An `ObjectPoolProvider` is always registered - react to aspnet/Hosting/pull#673 --- .../ServiceCollectionExtensions.cs | 1 - src/Microsoft.AspNetCore.Antiforgery/project.json | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Microsoft.AspNetCore.Antiforgery/ServiceCollectionExtensions.cs b/src/Microsoft.AspNetCore.Antiforgery/ServiceCollectionExtensions.cs index bc07489e2c..dfabbe80e3 100644 --- a/src/Microsoft.AspNetCore.Antiforgery/ServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNetCore.Antiforgery/ServiceCollectionExtensions.cs @@ -39,7 +39,6 @@ namespace Microsoft.Extensions.DependencyInjection services.TryAddSingleton(); services.TryAddSingleton(); - services.TryAddSingleton(new DefaultObjectPoolProvider()); services.TryAddSingleton>(serviceProvider => { var provider = serviceProvider.GetRequiredService(); diff --git a/src/Microsoft.AspNetCore.Antiforgery/project.json b/src/Microsoft.AspNetCore.Antiforgery/project.json index e1d6fe15b6..b207394d87 100644 --- a/src/Microsoft.AspNetCore.Antiforgery/project.json +++ b/src/Microsoft.AspNetCore.Antiforgery/project.json @@ -19,8 +19,7 @@ }, "dependencies": { "Microsoft.AspNetCore.DataProtection": "1.0.0-*", - "Microsoft.AspNetCore.Http": "1.0.0-*", - "Microsoft.Extensions.ObjectPool": "1.0.0-*" + "Microsoft.AspNetCore.Http": "1.0.0-*" }, "frameworks": { "netstandard1.3": {