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