7 writes to ContentType
Microsoft.AspNetCore.Mvc.Core (7)
Formatters\OutputFormatter.cs (2)
115context.ContentType = new StringSegment(SupportedMediaTypes[0]); 146context.ContentType = new StringSegment(SupportedMediaTypes[i]);
Formatters\TextOutputFormatter.cs (1)
145context.ContentType = selectedMediaType;
Infrastructure\DefaultOutputFormatterSelector.cs (4)
176formatterContext.ContentType = new StringSegment(); 197formatterContext.ContentType = mediaType.MediaType; 222formatterContext.ContentType = new StringSegment(contentType); 252formatterContext.ContentType = new StringSegment(possibleOutputContentTypes[j]);
11 references to ContentType
Microsoft.AspNetCore.Mvc.Core (11)
Formatters\OutputFormatter.cs (3)
111if (!context.ContentType.HasValue) 120var parsedContentType = new MediaType(context.ContentType); 174response.ContentType = context.ContentType.Value ?? string.Empty;
Formatters\StreamOutputFormatter.cs (2)
35if (context.ContentType != null) 37response.ContentType = context.ContentType.ToString();
Formatters\TextOutputFormatter.cs (3)
81if (context.ContentType.HasValue) 83var parsedContentType = new MediaType(context.ContentType); 107var selectedMediaType = context.ContentType;
Infrastructure\DefaultOutputFormatterSelector.cs (1)
292var contentType = Convert.ToString(context.ContentType, CultureInfo.InvariantCulture);
Infrastructure\ObjectResultExecutor.cs (2)
176if (context.ContentType.HasValue) 178considered.Add(Convert.ToString(context.ContentType, CultureInfo.InvariantCulture));