1 interface inheriting from IHttpClientLogger
Microsoft.Extensions.Http (1)
Logging\IHttpClientAsyncLogger.cs (1)
30
public interface IHttpClientAsyncLogger :
IHttpClientLogger
20 references to IHttpClientLogger
Microsoft.Extensions.Http (17)
DependencyInjection\HttpClientBuilderExtensions.Logging.cs (13)
18
/// <see cref="
IHttpClientLogger
"/> or <see cref="IHttpClientAsyncLogger"/>.</param>
24
/// If the <paramref name="wrapHandlersPipeline"/> is `true`, <see cref="
IHttpClientLogger
.LogRequestStart"/> and
26
/// other additional handlers in the chain. <see cref="
IHttpClientLogger
.LogRequestStop"/> and
31
/// If the <paramref name="wrapHandlersPipeline"/> is `false`, <see cref="
IHttpClientLogger
.LogRequestStart"/> and
33
/// other additional handlers in the chain, right before the primary handler. <see cref="
IHttpClientLogger
.LogRequestStop"/> and
46
public static IHttpClientBuilder AddLogger(this IHttpClientBuilder builder, Func<IServiceProvider,
IHttpClientLogger
> httpClientLoggerFactory, bool wrapHandlersPipeline = false)
55
IHttpClientLogger
httpClientLogger = httpClientLoggerFactory(b.Services);
81
/// The service type of the custom logger as it was registered in DI. The logger should implement <see cref="
IHttpClientLogger
"/>
86
/// If the <paramref name="wrapHandlersPipeline"/> is `true`, <see cref="
IHttpClientLogger
.LogRequestStart"/> and
88
/// other additional handlers in the chain. <see cref="
IHttpClientLogger
.LogRequestStop"/> and
93
/// If the <paramref name="wrapHandlersPipeline"/> is `false`, <see cref="
IHttpClientLogger
.LogRequestStart"/> and
95
/// other additional handlers in the chain, right before the primary handler. <see cref="
IHttpClientLogger
.LogRequestStop"/> and
109
where TLogger :
IHttpClientLogger
Logging\HttpClientLoggerHandler.cs (2)
14
private readonly
IHttpClientLogger
_httpClientLogger;
17
public HttpClientLoggerHandler(
IHttpClientLogger
httpClientLogger)
Logging\IHttpClientAsyncLogger.cs (2)
18
/// syncronous counterparts inherited from <see cref="
IHttpClientLogger
"/> (such as <see cref="
IHttpClientLogger
.LogRequestStart"/>)
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Logging\HttpClientLoggingExtensionsTest.cs (1)
408
where T :
IHttpClientLogger
Logging\Internal\TestLoggingHandler.cs (2)
15
public TestLoggingHandler(
IHttpClientLogger
logger, HttpMessageHandler? innerHandler)
20
private static DelegatingHandler CreateInternalBclLoggingHandler(
IHttpClientLogger
logger, HttpMessageHandler? innerHandler)