1 write to MediaType
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\MediaTypeSegmentWithQuality.cs (1)
20MediaType = mediaType;
8 references to MediaType
Microsoft.AspNetCore.Mvc.Core (7)
Formatters\AcceptHeaderParser.cs (3)
35if (output.MediaType.HasValue) 156if (result.MediaType.HasValue) 158return result.MediaType.Length;
Formatters\MediaTypeSegmentWithQuality.cs (1)
38return MediaType.ToString();
Infrastructure\DefaultOutputFormatterSelector.cs (3)
155var mediaType = new MediaType(result[i].MediaType); 197formatterContext.ContentType = mediaType.MediaType; 243var acceptableContentType = new MediaType(sortedAcceptableContentTypes[i].MediaType);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\AcceptHeaderParserTest.cs (1)
45Assert.Same(header, mediaType.MediaType.Buffer);