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