6 instantiations of LatencyConsoleOptions
Microsoft.Extensions.Telemetry.Tests (6)
Latency\Internal\LatencyConsoleExporterTests.cs (4)
75
var options = Options.Options.Create(new
LatencyConsoleOptions
97
var options = Options.Options.Create(new
LatencyConsoleOptions
119
var options = Options.Options.Create(new
LatencyConsoleOptions
141
var options = Options.Options.Create(new
LatencyConsoleOptions
Latency\LatencyConsoleExtensionsTests.cs (1)
53
LatencyConsoleOptions expectedOptions =
new
()
Latency\LatencyConsoleOptionsTests.cs (1)
13
var o = new
LatencyConsoleOptions
();
13 references to LatencyConsoleOptions
Microsoft.Extensions.Telemetry (7)
Latency\Internal\LatencyConsoleExporter.cs (2)
35
public LatencyConsoleExporter(IOptions<
LatencyConsoleOptions
> options)
37
var
o = options.Value;
Latency\LatencyConsoleExtensions.cs (5)
28
_ = services.AddOptions<
LatencyConsoleOptions
>();
38
/// <param name="configure"><see cref="
LatencyConsoleOptions
"/> configuration delegate.</param>
41
public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, Action<
LatencyConsoleOptions
> configure)
55
/// <param name="section">Configuration of <see cref="
LatencyConsoleOptions
"/>.</param>
63
_ = services.Configure<
LatencyConsoleOptions
>(section);
Microsoft.Extensions.Telemetry.Tests (6)
Latency\LatencyConsoleExtensionsTests.cs (5)
53
LatencyConsoleOptions
expectedOptions = new()
62
var actualOptions = provider.GetRequiredService<IOptions<
LatencyConsoleOptions
>>();
67
private static IConfigurationSection GetConfigSection(
LatencyConsoleOptions
options)
72
{ $"{nameof(
LatencyConsoleOptions
)}:{nameof(options.OutputTags)}", options.OutputTags.ToString(null) },
75
.GetSection($"{nameof(
LatencyConsoleOptions
)}");
Latency\LatencyConsoleOptionsTests.cs (1)
13
var
o = new LatencyConsoleOptions();