1 write to FormatterMappings
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
43FormatterMappings = new FormatterMappings();
9 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.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(