2 types derived from XmlDataContractSerializerOutputFormatter
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (2)
813private class TestXmlDataContractSerializerOutputFormatter : XmlDataContractSerializerOutputFormatter 824private class IndentingXmlDataContractSerializerOutputFormatter : XmlDataContractSerializerOutputFormatter
26 instantiations of XmlDataContractSerializerOutputFormatter
ApiExplorerWebSite (1)
Startup.cs (1)
28options.OutputFormatters.Add(new XmlDataContractSerializerOutputFormatter());
FormatterWebSite (1)
Controllers\DataContractSerializerController.cs (1)
21result.Formatters.Add(new XmlDataContractSerializerOutputFormatter());
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (1)
43var outputFormatter = new XmlDataContractSerializerOutputFormatter(_loggerFactory);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (23)
XmlDataContractSerializerOutputFormatterTest.cs (23)
101var formatter = new XmlDataContractSerializerOutputFormatter(); 141var formatter = new XmlDataContractSerializerOutputFormatter(); 161var formatter = new XmlDataContractSerializerOutputFormatter(writerSettings); 190var formatter = new XmlDataContractSerializerOutputFormatter(); 225var formatter = new XmlDataContractSerializerOutputFormatter(); 252var formatter = new XmlDataContractSerializerOutputFormatter( 284var formatter = new XmlDataContractSerializerOutputFormatter(); 311var formatter = new XmlDataContractSerializerOutputFormatter(); 333var formatter = new XmlDataContractSerializerOutputFormatter(); 351var formatter = new XmlDataContractSerializerOutputFormatter(); 382var formatter = new XmlDataContractSerializerOutputFormatter(); 415var formatter = new XmlDataContractSerializerOutputFormatter(); 446var formatter = new XmlDataContractSerializerOutputFormatter(); 469var formatter = new XmlDataContractSerializerOutputFormatter(); 486var formatter = new XmlDataContractSerializerOutputFormatter(); 520var formatter = new XmlDataContractSerializerOutputFormatter 567var formatter = new XmlDataContractSerializerOutputFormatter 614var formatter = new XmlDataContractSerializerOutputFormatter 636var formatter1 = new XmlDataContractSerializerOutputFormatter(new TestLoggerFactory(sink1, enabled: true)); 639var formatter2 = new XmlDataContractSerializerOutputFormatter( 675var formatter = new XmlDataContractSerializerOutputFormatter(); // no logger is being supplied here on purpose 725var formatter = new XmlDataContractSerializerOutputFormatter(); 765var formatter = new XmlDataContractSerializerOutputFormatter();
39 references to XmlDataContractSerializerOutputFormatter
Microsoft.AspNetCore.Mvc.Formatters.Xml (5)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (1)
43var outputFormatter = new XmlDataContractSerializerOutputFormatter(_loggerFactory);
XmlDataContractSerializerOutputFormatter.cs (4)
32/// Initializes a new instance of <see cref="XmlDataContractSerializerOutputFormatter"/> 41/// Initializes a new instance of <see cref="XmlDataContractSerializerOutputFormatter"/> 51/// Initializes a new instance of <see cref="XmlDataContractSerializerOutputFormatter"/>. 60/// Initializes a new instance of <see cref="XmlDataContractSerializerOutputFormatter"/>.
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (27)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetupTest.cs (1)
68Assert.IsType<XmlDataContractSerializerOutputFormatter>(Assert.Single(options.OutputFormatters));
XmlDataContractSerializerOutputFormatterTest.cs (26)
101var formatter = new XmlDataContractSerializerOutputFormatter(); 141var formatter = new XmlDataContractSerializerOutputFormatter(); 161var formatter = new XmlDataContractSerializerOutputFormatter(writerSettings); 190var formatter = new XmlDataContractSerializerOutputFormatter(); 225var formatter = new XmlDataContractSerializerOutputFormatter(); 252var formatter = new XmlDataContractSerializerOutputFormatter( 284var formatter = new XmlDataContractSerializerOutputFormatter(); 311var formatter = new XmlDataContractSerializerOutputFormatter(); 333var formatter = new XmlDataContractSerializerOutputFormatter(); 351var formatter = new XmlDataContractSerializerOutputFormatter(); 382var formatter = new XmlDataContractSerializerOutputFormatter(); 415var formatter = new XmlDataContractSerializerOutputFormatter(); 446var formatter = new XmlDataContractSerializerOutputFormatter(); 469var formatter = new XmlDataContractSerializerOutputFormatter(); 486var formatter = new XmlDataContractSerializerOutputFormatter(); 520var formatter = new XmlDataContractSerializerOutputFormatter 567var formatter = new XmlDataContractSerializerOutputFormatter 614var formatter = new XmlDataContractSerializerOutputFormatter 631public static TheoryData<XmlDataContractSerializerOutputFormatter, TestSink> LogsWhenUnableToCreateSerializerForTypeData 636var formatter1 = new XmlDataContractSerializerOutputFormatter(new TestLoggerFactory(sink1, enabled: true)); 639var formatter2 = new XmlDataContractSerializerOutputFormatter( 643return new TheoryData<XmlDataContractSerializerOutputFormatter, TestSink>() 654XmlDataContractSerializerOutputFormatter formatter, 675var formatter = new XmlDataContractSerializerOutputFormatter(); // no logger is being supplied here on purpose 725var formatter = new XmlDataContractSerializerOutputFormatter(); 765var formatter = new XmlDataContractSerializerOutputFormatter();
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ApiExplorerTest.cs (3)
856Assert.Equal(typeof(XmlDataContractSerializerOutputFormatter).FullName, textXml.FormatterType); 858Assert.Equal(typeof(XmlDataContractSerializerOutputFormatter).FullName, applicationXml.FormatterType); 940[InlineData("Controller", "text/xml", typeof(XmlDataContractSerializerOutputFormatter))]
XmlFormattersWebSite (4)
Controllers\XmlDataContractApiController.cs (2)
27var xmlFormatter = mvcOptions.Value.OutputFormatters.OfType<XmlDataContractSerializerOutputFormatter>().First();
Startup.cs (2)
31XmlDataContractSerializerOutputFormatter dcsOutputFormatter = null; 59case XmlDataContractSerializerOutputFormatter formatter: