20 references to AddParameter
HttpLogging.Sample (5)
SampleHttpLoggingInterceptor.cs (5)
43logContext.AddParameter(header.Key, "RedactedHeader"); // TODO: Redact header value 51logContext.AddParameter(header.Key, "RedactedHeader"); // TODO: Redact header value 75logContext.AddParameter("ResponseEnrichment", "Stuff"); 80logContext.AddParameter("RequestEnrichment", "Stuff"); 85logContext.AddParameter(nameof(logContext.HttpContext.Request.Path), "RedactedPath");
Microsoft.AspNetCore.HttpLogging (13)
HttpLoggingMiddleware.cs (10)
114logContext.AddParameter(nameof(request.Protocol), request.Protocol); 119logContext.AddParameter(nameof(request.Method), request.Method); 124logContext.AddParameter(nameof(request.Scheme), request.Scheme); 129logContext.AddParameter(nameof(request.PathBase), request.PathBase); 130logContext.AddParameter(nameof(request.Path), request.Path); 135logContext.AddParameter(nameof(request.QueryString), request.QueryString.Value); 233logContext.AddParameter(nameof(HttpLoggingFields.Duration), logContext.GetDuration()); 335logContext.AddParameter(nameof(response.StatusCode), response.StatusCode); 359logContext.AddParameter(key, Redacted); 362logContext.AddParameter(key, value.ToString());
RequestBufferingStream.cs (2)
127logContext.AddParameter("RequestBody", GetString(_encoding)); 128logContext.AddParameter("RequestBodyStatus", GetStatus(showCompleted: true));
ResponseBufferingStream.cs (1)
191logContext.AddParameter("ResponseBody", GetString(_encoding!));
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
2104logContext.AddParameter("i0request", "v0"); 2110logContext.AddParameter("i0response", "v0");