5 implementations of IHttpLoggingInterceptor
HttpLogging.Sample (1)
SampleHttpLoggingInterceptor.cs (1)
8internal sealed class SampleHttpLoggingInterceptor : IHttpLoggingInterceptor
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingRedactionInterceptor.cs (1)
23internal sealed class HttpLoggingRedactionInterceptor : IHttpLoggingInterceptor
Microsoft.AspNetCore.HttpLogging.Tests (3)
HttpLoggingMiddlewareTests.cs (3)
2235private class FakeInterceptor(Action<HttpLoggingInterceptorContext> interceptRequest, Action<HttpLoggingInterceptorContext> interceptResponse = null) : IHttpLoggingInterceptor 2250private class FakeInterceptor0() : IHttpLoggingInterceptor 2265private class FakeInterceptor1() : IHttpLoggingInterceptor
28 references to IHttpLoggingInterceptor
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingServiceCollectionExtensions.cs (1)
40services.TryAddEnumerable(ServiceDescriptor.Singleton<IHttpLoggingInterceptor, HttpLoggingRedactionInterceptor>());
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\LoggingOptionsValidationTests.cs (3)
29() => services.GetRequiredService<IHttpLoggingInterceptor>()); 45() => services.GetRequiredService<IHttpLoggingInterceptor>()); 61() => services.GetRequiredService<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)
23private readonly IHttpLoggingInterceptor[] _interceptors; 28IEnumerable<IHttpLoggingInterceptor> interceptors, ObjectPool<HttpLoggingInterceptorContext> contextPool, 314public static void LogResponseHeadersSync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger) 324public static async ValueTask LogResponseHeadersAsync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger)
HttpLoggingServicesExtensions.cs (4)
48/// Registers the given type as a <see cref="IHttpLoggingInterceptor"/> in the DI container. 50/// <typeparam name="T">A type that implements <see cref="IHttpLoggingInterceptor"/>.</typeparam> 54(this IServiceCollection services) where T : class, IHttpLoggingInterceptor 56services.TryAddEnumerable(ServiceDescriptor.Singleton<IHttpLoggingInterceptor, T>());
ResponseBufferingStream.cs (2)
21private IHttpLoggingInterceptor[] _interceptors = []; 45IHttpLoggingInterceptor[] interceptors)
UpgradeFeatureLoggingDecorator.cs (2)
14private readonly IHttpLoggingInterceptor[] _interceptors; 20IHttpLoggingInterceptor[] interceptors, ILogger logger)
Microsoft.AspNetCore.HttpLogging.Tests (9)
HttpLoggingMiddlewareTests.cs (9)
45Array.Empty<IHttpLoggingInterceptor>(), 56Array.Empty<IHttpLoggingInterceptor>(), 67Array.Empty<IHttpLoggingInterceptor>(), 89Array.Empty<IHttpLoggingInterceptor>(), 100Array.Empty<IHttpLoggingInterceptor>(), 111Array.Empty<IHttpLoggingInterceptor>(), 2126IHttpLoggingInterceptor interceptor = null) 2132interceptor == null ? Array.Empty<IHttpLoggingInterceptor>() : [interceptor], 2155private IHost CreateApp(HttpLoggingFields defaultFields = HttpLoggingFields.All, IHttpLoggingInterceptor interceptor = null)