24 writes to RequestBodyContentTypes
Microsoft.Extensions.Http.Diagnostics.Tests (24)
Logging\HttpClientLoggerTest.cs (6)
207
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
300
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
409
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
506
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
621
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
892
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
Logging\HttpRequestBodyReaderTest.cs (9)
36
RequestBodyContentTypes
= new HashSet<string> { "text/plain" }
56
RequestBodyContentTypes
= new HashSet<string> { "text/plain" }
80
RequestBodyContentTypes
= new HashSet<string> { "text/plain" }
101
RequestBodyContentTypes
= new HashSet<string> { "text/plain" }
128
RequestBodyContentTypes
= new HashSet<string> { "text/plain" },
152
RequestBodyContentTypes
= new HashSet<string> { "text/plain" },
173
RequestBodyContentTypes
= new HashSet<string> { "text/plain" }
206
RequestBodyContentTypes
= new HashSet<string> { "text/plain" }
227
RequestBodyContentTypes
= new HashSet<string> { "text/plain" }
Logging\HttpRequestReaderTest.cs (8)
66
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
132
RequestBodyContentTypes
= new HashSet<string> { PlainTextMedia },
196
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
271
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
345
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
405
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
478
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
547
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
Logging\LoggingOptionsTest.cs (1)
55
_sut.
RequestBodyContentTypes
= testContentTypes;
24 references to RequestBodyContentTypes
Microsoft.Extensions.Http.Diagnostics (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
56
if (!global::System.ComponentModel.DataAnnotations.Validator.TryValidateValue(options.
RequestBodyContentTypes
, context, validationResults, validationAttributes))
Logging\Internal\HttpRequestBodyReader.cs (1)
28
_readableRequestContentTypes = requestOptions.
RequestBodyContentTypes
.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
Logging\Internal\HttpRequestReader.cs (1)
86
_logRequestBody = options.
RequestBodyContentTypes
.Count > 0;
Logging\Internal\LoggingOptionsConfigureOptions.cs (2)
57
BindSet(_section.GetSection(nameof(LoggingOptions.
RequestBodyContentTypes
)), options.
RequestBodyContentTypes
);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
HttpClientFactory.cs (4)
28
options.
RequestBodyContentTypes
.Add("application/json");
75
options.
RequestBodyContentTypes
.Add("application/json");
101
options.
RequestBodyContentTypes
.Add("application/json");
148
options.
RequestBodyContentTypes
.Add("application/json");
Microsoft.Extensions.Http.Diagnostics.Tests (15)
Logging\AcceptanceTests.cs (5)
142
o.
RequestBodyContentTypes
.Add("application/json");
152
o.
RequestBodyContentTypes
.Add("application/json");
221
x.
RequestBodyContentTypes
.Add("application/json");
232
x.
RequestBodyContentTypes
.Add("application/json");
668
x.
RequestBodyContentTypes
.Add("application/json");
Logging\HttpClientLoggingExtensionsTest.cs (9)
170
options.
RequestBodyContentTypes
.Add(requestBodyContentType);
186
options.
RequestBodyContentTypes
.Should().ContainSingle();
187
options.
RequestBodyContentTypes
.Should().Contain(requestBodyContentType);
258
[$"{nameof(LoggingOptions)}:{nameof(LoggingOptions.
RequestBodyContentTypes
)}:0"] = "application/json",
259
[$"{nameof(LoggingOptions)}:{nameof(LoggingOptions.
RequestBodyContentTypes
)}:1"] = null,
288
options.
RequestBodyContentTypes
.Should().Equal("application/json");
492
options.
RequestBodyContentTypes
.Add(requestBodyContentType);
508
options.
RequestBodyContentTypes
.Should().ContainSingle();
509
options.
RequestBodyContentTypes
.Should().Contain(requestBodyContentType);
Logging\LoggingOptionsTest.cs (1)
57
_sut.
RequestBodyContentTypes
.Should().BeEquivalentTo(testContentTypes);