1 implementation of ITestHttpClient2
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\TestHttpClient2.cs (1)
9
internal 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>()
241
var secondClient = provider.GetService<
ITestHttpClient2
>() as TestHttpClient2;
484
.AddSingleton<
ITestHttpClient2
, TestHttpClient2>()
492
.AddHttpClient<
ITestHttpClient2
, TestHttpClient2>()
502
var secondClient = provider.GetService<
ITestHttpClient2
>() as TestHttpClient2;
507
var optionsSecond = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(
ITestHttpClient2
));
519
.AddSingleton<
ITestHttpClient2
, TestHttpClient2>()
526
.AddHttpClient<
ITestHttpClient2
, TestHttpClient2>()
557
var optionsSecond = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(
ITestHttpClient2
));
Logging\HttpClientLoggingExtensionsTest.cs (2)
111
.AddHttpClient<
ITestHttpClient2
, TestHttpClient2>()
117
var optionsSecond = provider.GetRequiredService<IOptionsMonitor<LoggingOptions>>().Get(nameof(
ITestHttpClient2
));