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