1 write to FormatterMappings
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
43
FormatterMappings
= new FormatterMappings();
9 references to FormatterMappings
Microsoft.AspNetCore.Mvc.Core (5)
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (1)
68
builder.Services.Configure<MvcOptions>((options) => setupAction(options.
FormatterMappings
));
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (1)
81
builder.Services.Configure<MvcOptions>((options) => setupAction(options.
FormatterMappings
));
Formatters\FormatFilter.cs (2)
72
var contentType = _options.
FormatterMappings
.GetMediaTypeMappingForFormat(format);
157
var contentType = _options.
FormatterMappings
.GetMediaTypeMappingForFormat(format);
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
74
options.
FormatterMappings
.SetMediaTypeMappingForFormat("json", MediaTypeHeaderValues.ApplicationJson);
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (2)
49
var mapping = options.
FormatterMappings
.GetMediaTypeMappingForFormat(key);
52
options.
FormatterMappings
.SetMediaTypeMappingForFormat(
DependencyInjection\XmlSerializerMvcOptionsSetup.cs (2)
37
var mapping = options.
FormatterMappings
.GetMediaTypeMappingForFormat(key);
40
options.
FormatterMappings
.SetMediaTypeMappingForFormat(