ObjectPoolProvider.Create ObjectPoolProvider.Create ObjectPoolProvider.Create Method

Definition

Overloads

Create<T>() Create<T>() Create<T>()
Create<T>(IPooledObjectPolicy<T>) Create<T>(IPooledObjectPolicy<T>) Create<T>(IPooledObjectPolicy<T>)

Create<T>() Create<T>() Create<T>()

public Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> () where T : class, new();
member this.Create : unit -> Microsoft.Extensions.ObjectPool.ObjectPool<'T (requires 'T : null and 'T : (new : unit -> 'T))> (requires 'T : null and 'T : (new : unit -> 'T))
Public Function Create(Of T As {Class, New}) () As ObjectPool(Of T)

Type Parameters

T

Returns

Create<T>(IPooledObjectPolicy<T>) Create<T>(IPooledObjectPolicy<T>) Create<T>(IPooledObjectPolicy<T>)

public abstract Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> (Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<T> policy) where T : class;
abstract member Create : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<'T (requires 'T : null)> -> Microsoft.Extensions.ObjectPool.ObjectPool<'T (requires 'T : null)> (requires 'T : null)
Public MustOverride Function Create(Of T As Class) (policy As IPooledObjectPolicy(Of T)) As ObjectPool(Of T)

Type Parameters

T

Parameters

Returns

Applies to