7 writes to MediaType
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
82ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } }, 88ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } },
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,
7 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)
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
440.Select(responseFormat => responseFormat.MediaType);