24 writes to ResponseBodyContentTypes
Microsoft.Extensions.Http.Diagnostics.Tests (24)
Logging\HttpClientLoggerTest.cs (6)
206ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 299ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 408ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 505ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 620ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 891ResponseBodyContentTypes = new HashSet<string> { TextPlain },
Logging\HttpRequestReaderTest.cs (7)
67ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 133ResponseBodyContentTypes = new HashSet<string> { PlainTextMedia }, 197ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 272ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 406ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 479ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 548ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
Logging\HttpResponseBodyReaderTest.cs (10)
43ResponseBodyContentTypes = new HashSet<string> { TextPlain } 63ResponseBodyContentTypes = new HashSet<string> { TextPlain } 82ResponseBodyContentTypes = new HashSet<string> { TextPlain } 104ResponseBodyContentTypes = new HashSet<string> { TextPlain } 124ResponseBodyContentTypes = new HashSet<string> { TextPlain } 148ResponseBodyContentTypes = new HashSet<string> { TextPlain } 176ResponseBodyContentTypes = new HashSet<string> { TextPlain } 209ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 237ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 286ResponseBodyContentTypes = 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)
66if (!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)
58BindSet(_section.GetSection(nameof(LoggingOptions.ResponseBodyContentTypes)), options.ResponseBodyContentTypes);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
HttpClientFactory.cs (4)
51options.ResponseBodyContentTypes.Add("application/json"); 78options.ResponseBodyContentTypes.Add("application/json"); 124options.ResponseBodyContentTypes.Add("application/json"); 151options.ResponseBodyContentTypes.Add("application/json");
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\AcceptanceTests.cs (5)
143o.ResponseBodyContentTypes.Add("application/json"); 153o.ResponseBodyContentTypes.Add("application/json"); 222x.ResponseBodyContentTypes.Add("application/json"); 233x.ResponseBodyContentTypes.Add("application/json"); 669x.ResponseBodyContentTypes.Add("application/json");
Logging\HttpClientLoggingExtensionsTest.cs (8)
171options.ResponseBodyContentTypes.Add(responseBodyContentType); 188options.ResponseBodyContentTypes.Should().ContainSingle(); 189options.ResponseBodyContentTypes.Should().Contain(responseBodyContentType); 260[$"{nameof(LoggingOptions)}:{nameof(LoggingOptions.ResponseBodyContentTypes)}:0"] = "text/plain", 289options.ResponseBodyContentTypes.Should().Equal("text/plain"); 493options.ResponseBodyContentTypes.Add(responseBodyContentType); 510options.ResponseBodyContentTypes.Should().ContainSingle(); 511options.ResponseBodyContentTypes.Should().Contain(responseBodyContentType);
Logging\LoggingOptionsTest.cs (1)
67_sut.ResponseBodyContentTypes.Should().BeEquivalentTo(testContentTypes);