LeakTrackingObjectPoolProvider.Create<T> Method

Definition

Creates an ObjectPool with the given IPooledObjectPolicy<T>.

C#
public override Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> (Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<T> policy) where T : class;

Type Parameters

T

The type to create a pool for.

Parameters

Returns

Applies to

Produit Versions
.NET 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)