24 writes to ResponseBodyContentTypes
Microsoft.Extensions.Http.Diagnostics.Tests (24)
Logging\HttpClientLoggerTest.cs (6)
206
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
299
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
408
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
505
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
620
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
891
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
Logging\HttpRequestReaderTest.cs (7)
67
ResponseBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
133
ResponseBodyContentTypes
= new HashSet<string> { PlainTextMedia },
197
ResponseBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
272
ResponseBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
406
ResponseBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
479
ResponseBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
548
ResponseBodyContentTypes
= new HashSet<string> { MediaTypeNames.Text.Plain },
Logging\HttpResponseBodyReaderTest.cs (10)
43
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
63
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
82
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
104
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
124
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
148
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
176
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
209
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
237
ResponseBodyContentTypes
= new HashSet<string> { TextPlain },
286
ResponseBodyContentTypes
= new HashSet<string> { TextPlain }
Logging\LoggingOptionsTest.cs (1)
65
_sut.
ResponseBodyContentTypes
= testContentTypes;
23 references to ResponseBodyContentTypes
Microsoft.Extensions.Http.Diagnostics (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
66
if (!global::System.ComponentModel.DataAnnotations.Validator.TryValidateValue(options.
ResponseBodyContentTypes
, context, validationResults, validationAttributes))
Logging\Internal\HttpRequestReader.cs (1)
87
_logResponseBody = options.
ResponseBodyContentTypes
.Count > 0;
Logging\Internal\HttpResponseBodyReader.cs (1)
37
_readableResponseContentTypes = responseOptions.
ResponseBodyContentTypes
.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
Logging\Internal\LoggingOptionsConfigureOptions.cs (2)
58
BindSet(_section.GetSection(nameof(LoggingOptions.
ResponseBodyContentTypes
)), options.
ResponseBodyContentTypes
);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
HttpClientFactory.cs (4)
51
options.
ResponseBodyContentTypes
.Add("application/json");
78
options.
ResponseBodyContentTypes
.Add("application/json");
124
options.
ResponseBodyContentTypes
.Add("application/json");
151
options.
ResponseBodyContentTypes
.Add("application/json");
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\AcceptanceTests.cs (5)
143
o.
ResponseBodyContentTypes
.Add("application/json");
153
o.
ResponseBodyContentTypes
.Add("application/json");
222
x.
ResponseBodyContentTypes
.Add("application/json");
233
x.
ResponseBodyContentTypes
.Add("application/json");
669
x.
ResponseBodyContentTypes
.Add("application/json");
Logging\HttpClientLoggingExtensionsTest.cs (8)
171
options.
ResponseBodyContentTypes
.Add(responseBodyContentType);
188
options.
ResponseBodyContentTypes
.Should().ContainSingle();
189
options.
ResponseBodyContentTypes
.Should().Contain(responseBodyContentType);
260
[$"{nameof(LoggingOptions)}:{nameof(LoggingOptions.
ResponseBodyContentTypes
)}:0"] = "text/plain",
289
options.
ResponseBodyContentTypes
.Should().Equal("text/plain");
493
options.
ResponseBodyContentTypes
.Add(responseBodyContentType);
510
options.
ResponseBodyContentTypes
.Should().ContainSingle();
511
options.
ResponseBodyContentTypes
.Should().Contain(responseBodyContentType);
Logging\LoggingOptionsTest.cs (1)
67
_sut.
ResponseBodyContentTypes
.Should().BeEquivalentTo(testContentTypes);