7 writes to MediaType
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
82
ApiResponseFormats = { new ApiResponseFormat {
MediaType
= "application/json" } },
88
ApiResponseFormats = { new ApiResponseFormat {
MediaType
= "application/json" } },
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
ApiResponseTypeProvider.cs (2)
424
MediaType
= formatterSupportedContentType,
435
MediaType
= contentType,
EndpointMetadataApiDescriptionProvider.cs (3)
510
return new ApiResponseFormat {
MediaType
= "text/plain" };
515
return new ApiResponseFormat {
MediaType
= "application/json" };
541
MediaType
= contentType,
7 references to MediaType
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
ApiResponseTypeProvider.cs (3)
154
.ThenBy(responseType => responseType.ApiResponseFormats.FirstOrDefault()?.
MediaType
)
493
if (!existing.ApiResponseFormats.Any(f => f.
MediaType
== format.
MediaType
))
EndpointMetadataApiDescriptionProvider.cs (3)
397
existingResponseType.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
);