7 references to AddPooled
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingServiceCollectionExtensions.cs (1)
29.AddPooled<HeaderParsingFeature.PoolHelper>()
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (6)
DependencyInjectionExtensionsTests.cs (6)
19Assert.Throws<ArgumentNullException>(() => ObjectPoolServiceCollectionExtensions.AddPooled<TestClass>(null!)); 87var services = new ServiceCollection().AddPooled<TestDependency>(); 115var services = new ServiceCollection().AddPooled<TestDependency>(options => options.Capacity = 64); 225.AddPooled<TestClass>() 260.AddPooled<TestClass>() 317.AddPooled<TestClass>()