2 implementations of CreateContext
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyContextProvider.cs (1)
24public ILatencyContext CreateContext() => _latencyInstrumentPool.Pool.Get();
Microsoft.Extensions.Telemetry.Abstractions (1)
Latency\NullLatencyContext.cs (1)
24public ILatencyContext CreateContext() => this;
13 references to CreateContext
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (1)
40services.TryAddScoped(p => p.GetRequiredService<ILatencyContextProvider>().CreateContext());
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\ChecpointAcceptanceTests.cs (1)
30.AddScoped(p => p.GetRequiredService<ILatencyContextProvider>().CreateContext())));
Microsoft.Extensions.Http.Diagnostics (1)
Latency\Internal\HttpLatencyTelemetryHandler.cs (1)
45using var context = _latencyContextProvider.CreateContext();
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Latency\Internal\HttpMockProvider.cs (1)
31lcp.Setup(a => a.CreateContext()).Returns(lc.Object);
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Latency\NoopLatencyContextTests.cs (1)
63Assert.NotNull(lcp.CreateContext());
Microsoft.Extensions.Telemetry.Tests (8)
Latency\Internal\LatencyContextTests.cs (8)
83var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext(); 110var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext(); 136var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext(); 164var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext(); 194var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext(); 220var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext(); 245var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext(); 271var context = services.GetRequiredService<ILatencyContextProvider>().CreateContext();