1 instantiation of MediaTypeSegmentWithQuality
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\MediaType.cs (1)
293return new MediaTypeSegmentWithQuality(
34 references to MediaTypeSegmentWithQuality
Microsoft.AspNetCore.Mvc.Core (34)
_generated\0\LoggerMessage.g.cs (9)
801private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::System.Exception?> __NoFormatterFromNegotiationCallback = 802global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "NoFormatterFromNegotiation"), "Could not find an output formatter based on content negotiation. Accepted types were ({AcceptTypes})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 809public static partial void NoFormatterFromNegotiation(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality> acceptTypes) 817private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::System.Exception?> __SelectingOutputFormatterUsingAcceptHeaderCallback = 818global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "SelectingOutputFormatterUsingAcceptHeader"), "Attempting to select an output formatter based on Accept header '{AcceptHeader}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 825public static partial void SelectingOutputFormatterUsingAcceptHeader(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality> acceptHeader) 833private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection, global::System.Exception?> __SelectingOutputFormatterUsingAcceptHeaderAndExplicitContentTypesCallback = 834global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "SelectingOutputFormatterUsingAcceptHeaderAndExplicitContentTypes"), "Attempting to select an output formatter based on Accept header '{AcceptHeader}' and explicitly specified content types '{ExplicitContentTypes}'. The content types in the accept header must be a subset of the explicitly set content types.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 841public static partial void SelectingOutputFormatterUsingAcceptHeaderAndExplicitContentTypes(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality> acceptHeader, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection explicitContentTypes)
Formatters\AcceptHeaderParser.cs (9)
11public static IList<MediaTypeSegmentWithQuality> ParseAcceptHeader(IList<string> acceptHeaders) 13var parsedValues = new List<MediaTypeSegmentWithQuality>(); 19public static void ParseAcceptHeader(IList<string> acceptHeaders, IList<MediaTypeSegmentWithQuality> parsedValues) 32if (TryParseValue(value, ref charIndex, out var output)) 50private static bool TryParseValue(string value, ref int index, out MediaTypeSegmentWithQuality parsedValue) 52parsedValue = default(MediaTypeSegmentWithQuality); 79var result = default(MediaTypeSegmentWithQuality); 153out MediaTypeSegmentWithQuality result)
Formatters\MediaType.cs (4)
254/// Creates an <see cref="MediaTypeSegmentWithQuality"/> containing the media type in <paramref name="mediaType"/> 260public static MediaTypeSegmentWithQuality CreateMediaTypeSegmentWithQuality(string mediaType, int start) 269return default(MediaTypeSegmentWithQuality); 290return default(MediaTypeSegmentWithQuality);
Formatters\MediaTypeSegmentWithQuality.cs (3)
14/// Initializes an instance of <see cref="MediaTypeSegmentWithQuality"/>. 25/// Gets the media type of this <see cref="MediaTypeSegmentWithQuality"/>. 30/// Gets the quality of this <see cref="MediaTypeSegmentWithQuality"/>.
Infrastructure\DefaultOutputFormatterSelector.cs (9)
22private static readonly Comparison<MediaTypeSegmentWithQuality> _sortFunction = (left, right) => 149private List<MediaTypeSegmentWithQuality> GetAcceptableMediaTypes(HttpRequest request) 151var result = new List<MediaTypeSegmentWithQuality>(); 191IList<MediaTypeSegmentWithQuality> sortedAcceptHeaders) 195var mediaType = sortedAcceptHeaders[i]; 238IList<MediaTypeSegmentWithQuality> sortedAcceptableContentTypes, 304public static partial void NoFormatterFromNegotiation(ILogger logger, IList<MediaTypeSegmentWithQuality> acceptTypes); 307public static partial void SelectingOutputFormatterUsingAcceptHeader(ILogger logger, IEnumerable<MediaTypeSegmentWithQuality> acceptHeader); 310public static partial void SelectingOutputFormatterUsingAcceptHeaderAndExplicitContentTypes(ILogger logger, IEnumerable<MediaTypeSegmentWithQuality> acceptHeader, MediaTypeCollection explicitContentTypes);