1 implementation of ITestHttpClient2
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\TestHttpClient2.cs (1)
9internal class TestHttpClient2 : ITestHttpClient2
12 references to ITestHttpClient2
Microsoft.Extensions.Http.Diagnostics.Tests (12)
Logging\AcceptanceTests.cs (10)
214.AddSingleton<ITestHttpClient2, TestHttpClient2>() 226.AddHttpClient<ITestHttpClient2, TestHttpClient2>() 241var secondClient = provider.GetService<ITestHttpClient2>() as TestHttpClient2; 484.AddSingleton<ITestHttpClient2, TestHttpClient2>() 492.AddHttpClient<ITestHttpClient2, TestHttpClient2>() 502var secondClient = provider.GetService<ITestHttpClient2>() as TestHttpClient2; 507var optionsSecond = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(ITestHttpClient2)); 519.AddSingleton<ITestHttpClient2, TestHttpClient2>() 526.AddHttpClient<ITestHttpClient2, TestHttpClient2>() 557var optionsSecond = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(ITestHttpClient2));
Logging\HttpClientLoggingExtensionsTest.cs (2)
111.AddHttpClient<ITestHttpClient2, TestHttpClient2>() 117var optionsSecond = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(ITestHttpClient2));