24 writes to RequestBodyContentTypes
Microsoft.Extensions.Http.Diagnostics.Tests (24)
Logging\HttpClientLoggerTest.cs (6)
207
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
299
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
406
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
502
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
616
RequestBodyContentTypes
= new HashSet<string> { TextPlain },
886
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)
63
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
127
RequestBodyContentTypes
= new HashSet<string> { PlainTextMedia },
189
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
263
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
336
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
394
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
465
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
532
RequestBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
Logging\LoggingOptionsTest.cs (1)
55
_sut.
RequestBodyContentTypes
= testContentTypes;
18 references to RequestBodyContentTypes
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpRequestBodyReader.cs (1)
38
_readableRequestContentTypes = requestOptions.
RequestBodyContentTypes
.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
Logging\Internal\HttpRequestReader.cs (1)
83
_logRequestBody = options.
RequestBodyContentTypes
.Count > 0;
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 (12)
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");
666
x.
RequestBodyContentTypes
.Add("application/json");
Logging\HttpClientLoggingExtensionsTest.cs (6)
165
options.
RequestBodyContentTypes
.Add(requestBodyContentType);
181
options.
RequestBodyContentTypes
.Should().ContainSingle();
182
options.
RequestBodyContentTypes
.Should().Contain(requestBodyContentType);
275
options.
RequestBodyContentTypes
.Add(requestBodyContentType);
291
options.
RequestBodyContentTypes
.Should().ContainSingle();
292
options.
RequestBodyContentTypes
.Should().Contain(requestBodyContentType);
Logging\LoggingOptionsTest.cs (1)
57
_sut.
RequestBodyContentTypes
.Should().BeEquivalentTo(testContentTypes);