5 writes to MediaType
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
ApiResponseTypeProvider.cs (2)
424MediaType = formatterSupportedContentType, 435MediaType = contentType,
EndpointMetadataApiDescriptionProvider.cs (3)
510return new ApiResponseFormat { MediaType = "text/plain" }; 515return new ApiResponseFormat { MediaType = "application/json" }; 541MediaType = contentType,
6 references to MediaType
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
ApiResponseTypeProvider.cs (3)
154.ThenBy(responseType => responseType.ApiResponseFormats.FirstOrDefault()?.MediaType) 493if (!existing.ApiResponseFormats.Any(f => f.MediaType == format.MediaType))
EndpointMetadataApiDescriptionProvider.cs (3)
397existingResponseType.ApiResponseFormats.FirstOrDefault()?.MediaType == apiResponseType.ApiResponseFormats.FirstOrDefault()?.MediaType)) 426.ThenBy(rt => rt.ApiResponseFormats.FirstOrDefault()?.MediaType)