23 instantiations of DefaultPooledObjectPolicy
Microsoft.Extensions.AsyncState (1)
src\Shared\Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);
Microsoft.Extensions.Compliance.Abstractions (1)
src\Shared\Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
src\Shared\Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);
Microsoft.Extensions.ObjectPool (2)
ObjectPool.cs (1)
34return provider.Create(policy ?? new DefaultPooledObjectPolicy<T>());
ObjectPoolProvider.cs (1)
17return Create<T>(new DefaultPooledObjectPolicy<T>());
Microsoft.Extensions.ObjectPool.Microbenchmark (4)
DrainRefillMultiTheaded.cs (1)
27_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count);
DrainRefillSingleThreaded.cs (1)
22_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count);
GetReturnMultiThreaded.cs (1)
25_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count);
GetReturnSingleThreaded.cs (1)
17_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count);
Microsoft.Extensions.ObjectPool.Tests (9)
DefaultObjectPoolTest.cs (2)
15var pool = new DefaultObjectPool<object>(new DefaultPooledObjectPolicy<object>()); 75var p = new DefaultObjectPool<Resettable>(new DefaultPooledObjectPolicy<Resettable>());
DisposableObjectPoolTest.cs (5)
16var pool = new DisposableObjectPool<object>(new DefaultPooledObjectPolicy<object>()); 64var pool = new DisposableObjectPool<DisposableObject>(new DefaultPooledObjectPolicy<DisposableObject>()); 79var pool = new DisposableObjectPool<DisposableObject>(new DefaultPooledObjectPolicy<DisposableObject>()); 97var pool = new DisposableObjectPool<DisposableObject>(new DefaultPooledObjectPolicy<DisposableObject>()); 114var pool = new DisposableObjectPool<DisposableObject>(new DefaultPooledObjectPolicy<DisposableObject>());
ThreadingTest.cs (2)
18_pool = new DefaultObjectPool<Item>(new DefaultPooledObjectPolicy<Item>(), 10); 25_pool = new DisposableObjectPool<Item>(new DefaultPooledObjectPolicy<Item>(), 10);
Microsoft.Extensions.Telemetry (1)
src\Shared\Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);
Microsoft.Extensions.Telemetry.Abstractions (1)
src\Shared\Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);
Shared (1)
Pools\PoolFactory.cs (1)
77return MakePool(new DefaultPooledObjectPolicy<T>(), maxCapacity);