4 instantiations of HttpClientLatencyTelemetryOptions
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
92HttpClientLatencyTelemetryOptions expectedOptions = new()
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (3)
30hop.Setup(a => a.Value).Returns(new HttpClientLatencyTelemetryOptions()); 51hop.Setup(a => a.Value).Returns(new HttpClientLatencyTelemetryOptions()); 93hop.Setup(a => a.Value).Returns(new HttpClientLatencyTelemetryOptions { EnableDetailedLatencyBreakdown = false });
20 references to HttpClientLatencyTelemetryOptions
Microsoft.Extensions.Http.Diagnostics (6)
Latency\HttpClientLatencyTelemetryExtensions.cs (5)
32_ = services.AddOptions<HttpClientLatencyTelemetryOptions>(); 57/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="HttpClientLatencyTelemetryOptions"/>.</param> 64.Configure<HttpClientLatencyTelemetryOptions>(section); 76/// <param name="configure">The delegate to configure <see cref="HttpClientLatencyTelemetryOptions"/> with.</param> 78public static IServiceCollection AddHttpClientLatencyTelemetry(this IServiceCollection services, Action<HttpClientLatencyTelemetryOptions> configure)
Latency\Internal\HttpLatencyTelemetryHandler.cs (1)
27IOptions<HttpClientLatencyTelemetryOptions> options, IOptions<ApplicationMetadata> appMetdata)
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (11)
26act = () => Mock.Of<IServiceCollection>().AddHttpClientLatencyTelemetry((Action<HttpClientLatencyTelemetryOptions>)null!); 49var options = sp.GetRequiredService<IOptions<HttpClientLatencyTelemetryOptions>>().Value; 83var options = sp.GetRequiredService<IOptions<HttpClientLatencyTelemetryOptions>>().Value; 92HttpClientLatencyTelemetryOptions expectedOptions = new() 103var options = sp.GetRequiredService<IOptions<HttpClientLatencyTelemetryOptions>>().Value; 108private static IConfigurationSection GetConfigSection(HttpClientLatencyTelemetryOptions options) 113{ $"{nameof(HttpClientLatencyTelemetryOptions)}:{nameof(options.EnableDetailedLatencyBreakdown)}", options.EnableDetailedLatencyBreakdown.ToString(CultureInfo.InvariantCulture) }, 116.GetSection($"{nameof(HttpClientLatencyTelemetryOptions)}");
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (3)
29var hop = new Mock<IOptions<HttpClientLatencyTelemetryOptions>>(); 50var hop = new Mock<IOptions<HttpClientLatencyTelemetryOptions>>(); 92var hop = new Mock<IOptions<HttpClientLatencyTelemetryOptions>>();