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