1 implementation of ITestHttpClient1
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\TestHttpClient1.cs (1)
9
public 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>()
240
var firstClient = provider.GetService<
ITestHttpClient1
>() as TestHttpClient1;
483
.AddSingleton<
ITestHttpClient1
, TestHttpClient1>()
485
.AddHttpClient<
ITestHttpClient1
, TestHttpClient1>()
501
var firstClient = provider.GetService<
ITestHttpClient1
>() as TestHttpClient1;
506
var optionsFirst = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(
ITestHttpClient1
));
518
.AddSingleton<
ITestHttpClient1
, TestHttpClient1>()
520
.AddHttpClient<
ITestHttpClient1
, TestHttpClient1>()
544
.AddHttpClient<
ITestHttpClient1
, TestHttpClient1>("testClient5")
556
var optionsFirst = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(
ITestHttpClient1
));
Logging\HttpClientLoggingExtensionsTest.cs (2)
108
.AddHttpClient<
ITestHttpClient1
, TestHttpClient1>()
116
var optionsFirst = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(
ITestHttpClient1
));