1 implementation of IHttpLoggingInterceptor
HttpLogging.Sample (1)
SampleHttpLoggingInterceptor.cs (1)
8
internal sealed class SampleHttpLoggingInterceptor :
IHttpLoggingInterceptor
25 references to IHttpLoggingInterceptor
Microsoft.AspNetCore.HttpLogging (15)
HttpLoggingInterceptorContext.cs (3)
10
/// The context used for <see cref="
IHttpLoggingInterceptor
"/>.
17
/// <see cref="
IHttpLoggingInterceptor
.OnRequestAsync(HttpLoggingInterceptorContext)"/>
18
/// to <see cref="
IHttpLoggingInterceptor
.OnResponseAsync(HttpLoggingInterceptorContext)"/> except the <see cref="Parameters"/>
HttpLoggingMiddleware.cs (4)
22
private readonly
IHttpLoggingInterceptor
[] _interceptors;
27
IEnumerable<
IHttpLoggingInterceptor
> interceptors, ObjectPool<HttpLoggingInterceptorContext> contextPool, TimeProvider timeProvider)
308
public static void LogResponseHeadersSync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options,
IHttpLoggingInterceptor
[] interceptors, ILogger logger)
318
public static async ValueTask LogResponseHeadersAsync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options,
IHttpLoggingInterceptor
[] interceptors, ILogger logger)
HttpLoggingServicesExtensions.cs (4)
46
/// Registers the given type as a <see cref="
IHttpLoggingInterceptor
"/> in the DI container.
48
/// <typeparam name="T">A type that implements <see cref="
IHttpLoggingInterceptor
"/>.</typeparam>
52
(this IServiceCollection services) where T : class,
IHttpLoggingInterceptor
54
services.TryAddEnumerable(ServiceDescriptor.Singleton<
IHttpLoggingInterceptor
, T>());
ResponseBufferingStream.cs (2)
20
private readonly
IHttpLoggingInterceptor
[] _interceptors;
30
IHttpLoggingInterceptor
[] interceptors)
UpgradeFeatureLoggingDecorator.cs (2)
14
private readonly
IHttpLoggingInterceptor
[] _interceptors;
20
IHttpLoggingInterceptor
[] interceptors, ILogger logger)
Microsoft.AspNetCore.HttpLogging.Tests (10)
HttpLoggingMiddlewareTests.cs (10)
45
Array.Empty<
IHttpLoggingInterceptor
>(),
55
Array.Empty<
IHttpLoggingInterceptor
>(),
65
Array.Empty<
IHttpLoggingInterceptor
>(),
85
Array.Empty<
IHttpLoggingInterceptor
>(),
95
Array.Empty<
IHttpLoggingInterceptor
>(),
1977
IHttpLoggingInterceptor
interceptor = null)
1983
interceptor == null ? Array.Empty<
IHttpLoggingInterceptor
>() : [interceptor],
2005
private IHost CreateApp(HttpLoggingFields defaultFields = HttpLoggingFields.All,
IHttpLoggingInterceptor
interceptor = null)
2085
private class FakeInterceptor(Action<HttpLoggingInterceptorContext> interceptRequest, Action<HttpLoggingInterceptorContext> interceptResponse = null) :
IHttpLoggingInterceptor
2100
private class FakeInterceptor0() :
IHttpLoggingInterceptor