1 write to InputFormatters
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
44InputFormatters = new FormatterCollection<IInputFormatter>();
20 references to InputFormatters
FormatterWebSite (1)
Startup.cs (1)
17options.InputFormatters.Add(new StringInputFormatter());
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
427foreach (var formatter in _mvcOptions.InputFormatters)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2228options.InputFormatters.Add(formatter);
Microsoft.AspNetCore.Mvc.Core (3)
Infrastructure\MvcCoreMvcOptionsSetup.cs (2)
50options.ModelBinderProviders.Add(new BodyModelBinderProvider(options.InputFormatters, _readerFactory, _loggerFactory, options)); 71options.InputFormatters.Add(new SystemTextJsonInputFormatter(_jsonOptions.Value, _loggerFactory.CreateLogger<SystemTextJsonInputFormatter>()));
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
79nameof(MvcOptions.InputFormatters),
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
45var expected = $"'{typeof(MvcOptions).FullName}.{nameof(MvcOptions.InputFormatters)}' must not be empty. " +
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (1)
41options.InputFormatters.Add(inputFormatter);
DependencyInjection\XmlSerializerMvcOptionsSetup.cs (1)
47options.InputFormatters.Add(inputFormatter);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetupTest.cs (1)
54Assert.IsType<XmlDataContractSerializerInputFormatter>(Assert.Single(options.InputFormatters));
DependencyInjection\XmlSerializerMvcOptionsSetupTest.cs (1)
54Assert.IsType<XmlSerializerInputFormatter>(Assert.Single(options.InputFormatters));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (3)
49options.InputFormatters.RemoveType<SystemTextJsonInputFormatter>(); 54options.InputFormatters.Add(new NewtonsoftJsonPatchInputFormatter( 63options.InputFormatters.Add(new NewtonsoftJsonInputFormatter(
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
106options.InputFormatters,
XmlFormattersWebSite (5)
Startup.cs (5)
33for (var i = options.InputFormatters.Count - 1; i >= 0; i--) 35switch (options.InputFormatters[i]) 46options.InputFormatters.RemoveAt(i); 89options.InputFormatters.Add(dcsInputFormatter); 90options.InputFormatters.Add(xmlSerializerInputFormatter);