1 instantiation of LatencyContext
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyContextPool.cs (1)
48
return new
LatencyContext
(_latencyContextPool);
7 references to LatencyContext
Microsoft.Extensions.Telemetry (7)
Latency\Internal\LatencyContext.cs (1)
17
private readonly ObjectPool<
LatencyContext
> _poolToReturnTo;
Latency\Internal\LatencyContextPool.cs (5)
13
internal ObjectPool<
LatencyContext
> Pool { get; set; }
24
Pool = new ResetOnGetObjectPool<
LatencyContext
>(lcp);
30
internal sealed class LatencyContextPolicy : PooledObjectPolicy<
LatencyContext
>
46
public override
LatencyContext
Create()
56
public override bool Return(
LatencyContext
obj) => true;
Latency\Internal\LatencyContextRegistrySet.cs (1)
12
/// Class that holds registry of names used with <see cref="
LatencyContext
"/> APIs.