1 implementation of IHttpLoggingInterceptor
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingRedactionInterceptor.cs (1)
23internal sealed class HttpLoggingRedactionInterceptor : IHttpLoggingInterceptor
19 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)