1 write to FormatterMappings
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
43
FormatterMappings
= new FormatterMappings();
10 references to FormatterMappings
Microsoft.AspNetCore.Mvc.Core (5)
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (1)
67
builder.Services.Configure<MvcOptions>((options) => setupAction(options.
FormatterMappings
));
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (1)
80
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(
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (1)
71
options.
FormatterMappings
.SetMediaTypeMappingForFormat("json", MediaTypeHeaderValues.ApplicationJson);