30 references to HttpLoggingInterceptorContext
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Logging\HttpLoggingRedactionInterceptor.cs (2)
66
public ValueTask OnRequestAsync(
HttpLoggingInterceptorContext
logContext)
141
public ValueTask OnResponseAsync(
HttpLoggingInterceptorContext
logContext)
Microsoft.AspNetCore.HttpLogging (28)
HttpLoggingBuilderExtensions.cs (1)
49
if (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)
20
private readonly ObjectPool<
HttpLoggingInterceptorContext
> _contextPool;
28
IEnumerable<IHttpLoggingInterceptor> interceptors, ObjectPool<
HttpLoggingInterceptorContext
> contextPool,
80
var
logContext = _contextPool.Get();
314
public static void LogResponseHeadersSync(
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger)
324
public static async ValueTask LogResponseHeadersAsync(
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger)
334
private static void LogResponseHeadersCore(
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options, ILogger logger)
356
internal static void FilterHeaders(
HttpLoggingInterceptorContext
logContext,
HttpLoggingServicesExtensions.cs (1)
25
services.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
22
ValueTask 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
36
ValueTask OnResponseAsync(
HttpLoggingInterceptorContext
logContext);
RequestBufferingStream.cs (1)
124
public void LogRequestBody(
HttpLoggingInterceptorContext
logContext)
ResponseBufferingStream.cs (3)
19
private
HttpLoggingInterceptorContext
_logContext = null!;
43
HttpLoggingInterceptorContext
logContext,
233
public void LogResponseBody(
HttpLoggingInterceptorContext
logContext)
UpgradeFeatureLoggingDecorator.cs (2)
12
private readonly
HttpLoggingInterceptorContext
_logContext;
19
public UpgradeFeatureLoggingDecorator(IHttpUpgradeFeature innerUpgradeFeature,
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options,