Compartilhar via


ObjectPool<T> Construtor

Definição

Pool de objetos simples

public ObjectPool (Func<T> factoryFunc, Orleans.Providers.Streams.Common.IObjectPoolMonitor monitor = default, TimeSpan? monitorWriteInterval = default);
new Orleans.Providers.Streams.Common.ObjectPool<'T (requires 'T :> Orleans.Providers.Streams.Common.PooledResource<'T>)> : Func<'T (requires 'T :> Orleans.Providers.Streams.Common.PooledResource<'T>)> * Orleans.Providers.Streams.Common.IObjectPoolMonitor * Nullable<TimeSpan> -> Orleans.Providers.Streams.Common.ObjectPool<'T (requires 'T :> Orleans.Providers.Streams.Common.PooledResource<'T>)>
Public Sub New (factoryFunc As Func(Of T), Optional monitor As IObjectPoolMonitor = Nothing, Optional monitorWriteInterval As Nullable(Of TimeSpan) = Nothing)

Parâmetros

factoryFunc
Func<T>

Função usada para criar novos recursos do tipo T

monitor
IObjectPoolMonitor

monitorar para relatar estatísticas para o pool de objetos

monitorWriteInterval
Nullable<TimeSpan>

Aplica-se a