12 implementations of IPooledObjectPolicy
Microsoft.AspNetCore.Antiforgery (1)
Internal\AntiforgerySerializationContextPooledObjectPolicy.cs (1)
8internal sealed class AntiforgerySerializationContextPooledObjectPolicy : IPooledObjectPolicy<AntiforgerySerializationContext>
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonSerializerObjectPolicy.cs (1)
12internal sealed class JsonSerializerObjectPolicy : IPooledObjectPolicy<JsonSerializer>
Microsoft.AspNetCore.Routing (1)
UriBuilderContextPooledObjectPolicy.cs (1)
9internal sealed class UriBuilderContextPooledObjectPolicy : IPooledObjectPolicy<UriBuildingContext>
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnectionListener.cs (1)
183private sealed class NamedPipeServerStreamPoolPolicy : IPooledObjectPolicy<NamedPipeServerStream>
Microsoft.Extensions.AsyncState (1)
FeaturesPooledPolicy.cs (1)
9internal sealed class FeaturesPooledPolicy : IPooledObjectPolicy<List<object?>>
Microsoft.Extensions.Http.Resilience (2)
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategyFactory.cs (1)
10internal sealed class OrderedGroupsRoutingStrategyFactory : IPooledObjectPolicy<OrderedGroupsRoutingStrategy>
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategyFactory.cs (1)
10internal sealed class WeightedGroupsRoutingStrategyFactory : IPooledObjectPolicy<WeightedGroupsRoutingStrategy>
Microsoft.Extensions.ObjectPool (1)
PooledObjectPolicy.cs (1)
10public abstract class PooledObjectPolicy<T> : IPooledObjectPolicy<T> where T : notnull
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
DependencyInjectionPooledObjectPolicy.cs (1)
10internal sealed class DependencyInjectionPooledObjectPolicy<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation> : IPooledObjectPolicy<TService>
Microsoft.Extensions.ObjectPool.Tests (2)
DefaultObjectPoolTest.cs (1)
100private class ListPolicy : IPooledObjectPolicy<List<int>>
DisposableObjectPoolTest.cs (1)
125private class ListPolicy : IPooledObjectPolicy<List<int>>
Shared.Tests (1)
Pools\PoolTests.cs (1)
35private class FooPolicy : IPooledObjectPolicy<Foo>
40 references to IPooledObjectPolicy
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonSerializerObjectPolicy.cs (1)
10/// <see cref="IPooledObjectPolicy{T}"/> for <see cref="JsonSerializer"/>.
Microsoft.Extensions.AsyncState (3)
src\Shared\Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)
Microsoft.Extensions.Compliance.Abstractions (3)
src\Shared\Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
src\Shared\Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
src\Shared\Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)
Microsoft.Extensions.Http.Resilience (7)
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategyFactory.cs (2)
32OrderedGroupsRoutingStrategy IPooledObjectPolicy<OrderedGroupsRoutingStrategy>.Create() => new(_randomizer, _pool); 34bool IPooledObjectPolicy<OrderedGroupsRoutingStrategy>.Return(OrderedGroupsRoutingStrategy obj) => obj.TryReset();
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategyFactory.cs (2)
32WeightedGroupsRoutingStrategy IPooledObjectPolicy<WeightedGroupsRoutingStrategy>.Create() => new(_randomizer, _pool); 34bool IPooledObjectPolicy<WeightedGroupsRoutingStrategy>.Return(WeightedGroupsRoutingStrategy obj) => obj.TryReset();
src\Shared\Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)
Microsoft.Extensions.ObjectPool (11)
DefaultObjectPool.cs (2)
29public DefaultObjectPool(IPooledObjectPolicy<T> policy) 39public DefaultObjectPool(IPooledObjectPolicy<T> policy, int maximumRetained)
DefaultObjectPoolProvider.cs (1)
20public override ObjectPool<T> Create<T>(IPooledObjectPolicy<T> policy)
DisposableObjectPool.cs (2)
13public DisposableObjectPool(IPooledObjectPolicy<T> policy) 18public DisposableObjectPool(IPooledObjectPolicy<T> policy, int maximumRetained)
LeakTrackingObjectPoolProvider.cs (1)
31public override ObjectPool<T> Create<T>(IPooledObjectPolicy<T> policy)
ObjectPool.cs (2)
30/// <inheritdoc cref="ObjectPoolProvider.Create{T}(IPooledObjectPolicy{T})" /> 31public static ObjectPool<T> Create<T>(IPooledObjectPolicy<T>? policy = null) where T : class, new()
ObjectPoolProvider.cs (2)
21/// Creates an <see cref="ObjectPool"/> with the given <see cref="IPooledObjectPolicy{T}"/>. 24public abstract ObjectPool<T> Create<T>(IPooledObjectPolicy<T> policy) where T : class;
PooledObjectPolicy.cs (1)
7/// A base type for <see cref="IPooledObjectPolicy{T}"/>.
Microsoft.Extensions.Telemetry (3)
src\Shared\Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)
Microsoft.Extensions.Telemetry.Abstractions (3)
src\Shared\Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)
Shared (3)
Pools\PoolFactory.cs (3)
27private static readonly IPooledObjectPolicy<StringBuilder> _defaultStringBuilderPolicy = new StringBuilderPooledObjectPolicy 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 187private static DefaultObjectPool<T> MakePool<T>(IPooledObjectPolicy<T> policy, int maxRetained)