1 implementation of ITestHttpClient1
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\TestHttpClient1.cs (1)
9public class TestHttpClient1 : ITestHttpClient1
13 references to ITestHttpClient1
Microsoft.Extensions.Http.Diagnostics.Tests (13)
Logging\AcceptanceTests.cs (11)
213.AddSingleton<ITestHttpClient1, TestHttpClient1>() 215.AddHttpClient<ITestHttpClient1, TestHttpClient1>() 240var firstClient = provider.GetService<ITestHttpClient1>() as TestHttpClient1; 483.AddSingleton<ITestHttpClient1, TestHttpClient1>() 485.AddHttpClient<ITestHttpClient1, TestHttpClient1>() 501var firstClient = provider.GetService<ITestHttpClient1>() as TestHttpClient1; 506var optionsFirst = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(ITestHttpClient1)); 518.AddSingleton<ITestHttpClient1, TestHttpClient1>() 520.AddHttpClient<ITestHttpClient1, TestHttpClient1>() 544.AddHttpClient<ITestHttpClient1, TestHttpClient1>("testClient5") 556var optionsFirst = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(ITestHttpClient1));
Logging\HttpClientLoggingExtensionsTest.cs (2)
108.AddHttpClient<ITestHttpClient1, TestHttpClient1>() 116var optionsFirst = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(ITestHttpClient1));