11 instantiations of LatencyContextOptions
Microsoft.Extensions.Telemetry.Tests (11)
Latency\Internal\LatencyContextPoolTests.cs (1)
102lco.Setup(a => a.Value).Returns(new LatencyContextOptions { ThrowOnUnregisteredNames = false });
Latency\Internal\LatencyContextProviderTests.cs (3)
17var options = new LatencyContextOptions 32var options = new LatencyContextOptions 68LatencyContextOptions options = new LatencyContextOptions
Latency\Internal\LatencyContextRegistrySetTests.cs (2)
18lco.Setup(a => a.Value).Returns(new LatencyContextOptions()); 85lco.Setup(a => a.Value).Returns(new LatencyContextOptions());
Latency\Internal\LatencyContextTests.cs (1)
298lco.Setup(a => a.Value).Returns(new LatencyContextOptions { ThrowOnUnregisteredNames = false });
Latency\Internal\LatencyContextTokenIssuerTests.cs (1)
67lco.Setup(a => a.Value).Returns(new LatencyContextOptions { ThrowOnUnregisteredNames = false });
Latency\LatencyContextExtensionTests.cs (3)
88LatencyContextOptions expectedOptions = new() 106var l = new LatencyContextOptions 116var o = new LatencyContextOptions();
25 references to LatencyContextOptions
Microsoft.Extensions.Telemetry (6)
Latency\Internal\LatencyContextRegistrySet.cs (1)
31public LatencyContextRegistrySet(IOptions<LatencyContextOptions> latencyContextOptions,
Latency\LatencyContextExtensions.cs (5)
26_ = services.AddOptions<LatencyContextOptions>(); 38/// <param name="configure">The <see cref="LatencyContextOptions"/> configuration delegate.</param> 40public static IServiceCollection AddLatencyContext(this IServiceCollection services, Action<LatencyContextOptions> configure) 54/// <param name="section">The configuration of <see cref="LatencyContextOptions"/>.</param> 61_ = services.Configure<LatencyContextOptions>(section);
Microsoft.Extensions.Telemetry.Tests (19)
Latency\Internal\LatencyContextPoolTests.cs (1)
101var lco = new Mock<IOptions<LatencyContextOptions>>();
Latency\Internal\LatencyContextProviderTests.cs (7)
17var options = new LatencyContextOptions 32var options = new LatencyContextOptions 68LatencyContextOptions options = new LatencyContextOptions 96private static ILatencyContextTokenIssuer GetTokenIssuer(LatencyContextOptions options) 98var lco = new Mock<IOptions<LatencyContextOptions>>(); 106private static LatencyInstrumentProvider GetLatencyInstrumentProvider(LatencyContextOptions options) 108var lco = new Mock<IOptions<LatencyContextOptions>>();
Latency\Internal\LatencyContextRegistrySetTests.cs (2)
17var lco = new Mock<IOptions<LatencyContextOptions>>(); 84var lco = new Mock<IOptions<LatencyContextOptions>>();
Latency\Internal\LatencyContextTests.cs (1)
297var lco = new Mock<IOptions<LatencyContextOptions>>();
Latency\Internal\LatencyContextTokenIssuerTests.cs (1)
66var lco = new Mock<IOptions<LatencyContextOptions>>();
Latency\LatencyContextExtensionTests.cs (7)
88LatencyContextOptions expectedOptions = new() 98var actualOptions = provider.GetRequiredService<IOptions<LatencyContextOptions>>(); 106var l = new LatencyContextOptions 116var o = new LatencyContextOptions(); 120private static IConfigurationSection GetConfigSection(LatencyContextOptions options) 125{ $"{nameof(LatencyContextOptions)}:{nameof(options.ThrowOnUnregisteredNames)}", options.ThrowOnUnregisteredNames.ToString(CultureInfo.InvariantCulture) } 128.GetSection($"{nameof(LatencyContextOptions)}");