9 references to DefaultCapacity
Microsoft.Extensions.Http.Resilience (9)
src\Shared\Pools\PoolFactory.cs (9)
30MaximumRetainedCapacity = DefaultCapacity 39public static ObjectPool<T> CreatePool<T>(int maxCapacity = DefaultCapacity) 54public static ObjectPool<T> CreatePool<T>(IPooledObjectPolicy<T> policy, int maxCapacity = DefaultCapacity) 72public static ObjectPool<T> CreateResettingPool<T>(int maxCapacity = DefaultCapacity) 86public static ObjectPool<StringBuilder> CreateStringBuilderPool(int maxCapacity = DefaultCapacity, int maxStringBuilderCapacity = DefaultMaxStringBuilderCapacity) 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 133public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity) 152public static ObjectPool<HashSet<T>> CreateHashSetPool<T>(IEqualityComparer<T>? comparer = null, int maxCapacity = DefaultCapacity) 175public static ObjectPool<CancellationTokenSource> CreateCancellationTokenSourcePool(int maxCapacity = DefaultCapacity)