30 references to HttpLoggingInterceptorContext
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Logging\HttpLoggingRedactionInterceptor.cs (2)
66public ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext) 141public ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext)
Microsoft.AspNetCore.HttpLogging (28)
HttpLoggingBuilderExtensions.cs (1)
49if (serviceProviderIsService != null && (!serviceProviderIsService.IsService(typeof(ObjectPool<HttpLoggingInterceptorContext>)) ||
HttpLoggingInterceptorContext.cs (2)
17/// <see cref="IHttpLoggingInterceptor.OnRequestAsync(HttpLoggingInterceptorContext)"/> 18/// to <see cref="IHttpLoggingInterceptor.OnResponseAsync(HttpLoggingInterceptorContext)"/> except the <see cref="Parameters"/>
HttpLoggingMiddleware.cs (7)
20private readonly ObjectPool<HttpLoggingInterceptorContext> _contextPool; 28IEnumerable<IHttpLoggingInterceptor> interceptors, ObjectPool<HttpLoggingInterceptorContext> contextPool, 80var logContext = _contextPool.Get(); 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) 334private static void LogResponseHeadersCore(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, ILogger logger) 356internal static void FilterHeaders(HttpLoggingInterceptorContext logContext,
HttpLoggingServicesExtensions.cs (1)
25services.TryAddSingleton(ObjectPool.ObjectPool.Create<HttpLoggingInterceptorContext>());
IHttpLoggingInterceptor.cs (11)
16/// <see cref="OnResponseAsync(HttpLoggingInterceptorContext)"/> except the <see cref="HttpLoggingInterceptorContext.Parameters"/> 17/// will be cleared after logging the request. <see cref="HttpLoggingInterceptorContext.LoggingFields"/> may be changed per request to control the logging behavior. 18/// If no request fields are enabled, and the <see cref="HttpLoggingInterceptorContext.Parameters"/> collection is empty, no request logging will occur. 19/// If <see cref="HttpLoggingOptions.CombineLogs"/> is enabled then <see cref="HttpLoggingInterceptorContext.Parameters"/> will carry over from the request to response 22ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext); 29/// over from <see cref="OnRequestAsync(HttpLoggingInterceptorContext)"/> (except the <see cref="HttpLoggingInterceptorContext.Parameters"/>) and response settings may 30/// still be modified. Changes to request settings will have no effect. If no response fields are enabled, and the <see cref="HttpLoggingInterceptorContext.Parameters"/> 32/// If <see cref="HttpLoggingOptions.CombineLogs"/> is enabled then <see cref="HttpLoggingInterceptorContext.Parameters"/> will carry over from the request to response 36ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext);
RequestBufferingStream.cs (1)
124public void LogRequestBody(HttpLoggingInterceptorContext logContext)
ResponseBufferingStream.cs (3)
19private HttpLoggingInterceptorContext _logContext = null!; 43HttpLoggingInterceptorContext logContext, 233public void LogResponseBody(HttpLoggingInterceptorContext logContext)
UpgradeFeatureLoggingDecorator.cs (2)
12private readonly HttpLoggingInterceptorContext _logContext; 19public UpgradeFeatureLoggingDecorator(IHttpUpgradeFeature innerUpgradeFeature, HttpLoggingInterceptorContext logContext, HttpLoggingOptions options,