2 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
29 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)
22private readonly IHttpLoggingInterceptor[] _interceptors; 27IEnumerable<IHttpLoggingInterceptor> interceptors, ObjectPool<HttpLoggingInterceptorContext> contextPool, TimeProvider timeProvider) 308public static void LogResponseHeadersSync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger) 318public 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 54services.TryAddEnumerable(ServiceDescriptor.Singleton<IHttpLoggingInterceptor, T>());
ResponseBufferingStream.cs (2)
20private readonly IHttpLoggingInterceptor[] _interceptors; 30IHttpLoggingInterceptor[] interceptors)
UpgradeFeatureLoggingDecorator.cs (2)
14private readonly IHttpLoggingInterceptor[] _interceptors; 20IHttpLoggingInterceptor[] interceptors, ILogger logger)
Microsoft.AspNetCore.HttpLogging.Tests (10)
HttpLoggingMiddlewareTests.cs (10)
45Array.Empty<IHttpLoggingInterceptor>(), 55Array.Empty<IHttpLoggingInterceptor>(), 65Array.Empty<IHttpLoggingInterceptor>(), 85Array.Empty<IHttpLoggingInterceptor>(), 95Array.Empty<IHttpLoggingInterceptor>(), 1977IHttpLoggingInterceptor interceptor = null) 1983interceptor == null ? Array.Empty<IHttpLoggingInterceptor>() : [interceptor], 2005private IHost CreateApp(HttpLoggingFields defaultFields = HttpLoggingFields.All, IHttpLoggingInterceptor interceptor = null) 2085private class FakeInterceptor(Action<HttpLoggingInterceptorContext> interceptRequest, Action<HttpLoggingInterceptorContext> interceptResponse = null) : IHttpLoggingInterceptor 2100private class FakeInterceptor0() : IHttpLoggingInterceptor