1 write to FormatterMappings
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
43FormatterMappings = new FormatterMappings();
22 references to FormatterMappings
Microsoft.AspNetCore.Mvc.Core (5)
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (1)
68builder.Services.Configure<MvcOptions>((options) => setupAction(options.FormatterMappings));
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (1)
81builder.Services.Configure<MvcOptions>((options) => setupAction(options.FormatterMappings));
Formatters\FormatFilter.cs (2)
72var contentType = _options.FormatterMappings.GetMediaTypeMappingForFormat(format); 157var contentType = _options.FormatterMappings.GetMediaTypeMappingForFormat(format);
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
74options.FormatterMappings.SetMediaTypeMappingForFormat("json", MediaTypeHeaderValues.ApplicationJson);
Microsoft.AspNetCore.Mvc.Core.Test (5)
Formatters\FormatFilterTest.cs (5)
117mockObjects.MvcOptions.FormatterMappings.SetMediaTypeMappingForFormat( 200mockObjects.MvcOptions.FormatterMappings.SetMediaTypeMappingForFormat( 221mockObjects.MvcOptions.FormatterMappings.SetMediaTypeMappingForFormat( 247mockObjects.MvcOptions.FormatterMappings.SetMediaTypeMappingForFormat( 468MvcOptions.FormatterMappings.SetMediaTypeMappingForFormat(
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (2)
49var mapping = options.FormatterMappings.GetMediaTypeMappingForFormat(key); 52options.FormatterMappings.SetMediaTypeMappingForFormat(
DependencyInjection\XmlSerializerMvcOptionsSetup.cs (2)
37var mapping = options.FormatterMappings.GetMediaTypeMappingForFormat(key); 40options.FormatterMappings.SetMediaTypeMappingForFormat(
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetupTest.cs (3)
23var mappedContentType = options.FormatterMappings.GetMediaTypeMappingForFormat("xml"); 33options.FormatterMappings.SetMediaTypeMappingForFormat("xml", "text/xml"); 39var mappedContentType = options.FormatterMappings.GetMediaTypeMappingForFormat("xml");
DependencyInjection\XmlSerializerMvcOptionsSetupTest.cs (3)
23var mappedContentType = options.FormatterMappings.GetMediaTypeMappingForFormat("xml"); 33options.FormatterMappings.SetMediaTypeMappingForFormat("xml", "text/xml"); 39var mappedContentType = options.FormatterMappings.GetMediaTypeMappingForFormat("xml");
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (1)
71options.FormatterMappings.SetMediaTypeMappingForFormat("json", MediaTypeHeaderValues.ApplicationJson);
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
117var mapping = options.FormatterMappings.GetMediaTypeMappingForFormat("json");