8 references to PoolFactory
Microsoft.Extensions.Telemetry (8)
Http\HttpRouteFormatter.cs (2)
54
var pathStringBuilder =
PoolFactory
.SharedStringBuilderPool.Get();
112
PoolFactory
.SharedStringBuilderPool.Return(pathStringBuilder);
Latency\Internal\LatencyConsoleExporter.cs (2)
45
var sb =
PoolFactory
.SharedStringBuilderPool.Get();
113
PoolFactory
.SharedStringBuilderPool.Return(sb);
Latency\Internal\ResetOnGetObjectPool.cs (1)
19
_objectPool =
PoolFactory
.CreatePool(policy);
Logging\ExtendedLogger.cs (2)
151
var sb =
PoolFactory
.SharedStringBuilderPool.Get();
162
PoolFactory
.SharedStringBuilderPool.Return(sb);
Logging\JustInTimeRedactor.cs (1)
183
private static readonly ObjectPool<JustInTimeRedactor> _pool =
PoolFactory
.CreateResettingPool<JustInTimeRedactor>();