1 implementation of IHttpLoggingInterceptor
HttpLogging.Sample (1)
SampleHttpLoggingInterceptor.cs (1)
8internal 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)
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