1 implementation of IInputFormatter
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\InputFormatter.cs (1)
13public abstract class InputFormatter : IInputFormatter, IApiRequestFormatMetadataProvider
59 references to IInputFormatter
Microsoft.AspNetCore.Mvc.Abstractions (23)
ApiExplorer\ApiRequestFormat.cs (1)
16public IInputFormatter Formatter { get; set; } = default!;
Formatters\IInputFormatter.cs (2)
12/// Determines whether this <see cref="IInputFormatter"/> can deserialize an object of the 17/// <c>true</c> if this <see cref="IInputFormatter"/> can deserialize an object of the
Formatters\IInputFormatterExceptionPolicy.cs (2)
7/// A policy which <see cref="IInputFormatter"/>s can implement to indicate if they want the body model binder 8/// to handle all exceptions. By default, all default <see cref="IInputFormatter"/>s implement this interface and
Formatters\InputFormatterException.cs (1)
7/// Exception thrown by <see cref="IInputFormatter"/> when the input is not in an expected format.
Formatters\InputFormatterExceptionPolicy.cs (3)
8/// thrown by an <see cref="IInputFormatter"/>. <seealso cref="IInputFormatterExceptionPolicy"/> 12/// An <see cref="IInputFormatter"/> could throw an exception for several reasons, including: 37/// This value indicates that all exceptions thrown by an <see cref="IInputFormatter"/> will be treated
Formatters\InputFormatterResult.cs (14)
7/// Result of a <see cref="IInputFormatter.ReadAsync"/> operation. 28/// Gets an indication whether the <see cref="IInputFormatter.ReadAsync"/> operation had an error. 46/// Returns an <see cref="InputFormatterResult"/> indicating the <see cref="IInputFormatter.ReadAsync"/> 50/// An <see cref="InputFormatterResult"/> indicating the <see cref="IInputFormatter.ReadAsync"/> 60/// the <see cref="IInputFormatter.ReadAsync"/> operation failed. 64/// <see cref="IInputFormatter.ReadAsync"/> operation failed i.e. with <see cref="HasError"/> <c>true</c>. 72/// Returns an <see cref="InputFormatterResult"/> indicating the <see cref="IInputFormatter.ReadAsync"/> 77/// An <see cref="InputFormatterResult"/> indicating the <see cref="IInputFormatter.ReadAsync"/> 87/// the <see cref="IInputFormatter.ReadAsync"/> operation was successful. 92/// <see cref="IInputFormatter.ReadAsync"/> operation succeeded i.e. with <see cref="HasError"/> <c>false</c>. 100/// Returns an <see cref="InputFormatterResult"/> indicating the <see cref="IInputFormatter.ReadAsync"/> 104/// An <see cref="InputFormatterResult"/> indicating the <see cref="IInputFormatter.ReadAsync"/> 114/// the <see cref="IInputFormatter.ReadAsync"/> operation produced no value. 118/// <see cref="IInputFormatter.ReadAsync"/> operation produced no value.
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
446foreach (var formatter in _mvcOptions.InputFormatters)
Microsoft.AspNetCore.Mvc.Core (35)
_generated\0\LoggerMessage.g.cs (6)
1419private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?, global::System.Exception?> __InputFormatterSelectedCallback = 1420global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "InputFormatterSelected"), "Selected input formatter '{InputFormatter}' for content type '{ContentType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1427private static partial void InputFormatterSelected(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter inputFormatter, string? contentType) 1432private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?, global::System.Exception?> __InputFormatterRejectedCallback = 1433global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "InputFormatterRejected"), "Rejected input formatter '{InputFormatter}' for content type '{ContentType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1440private static partial void InputFormatterRejected(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter inputFormatter, string? contentType)
ApiExplorer\IApiRequestFormatMetadataProvider.cs (3)
10/// An <see cref="Formatters.IInputFormatter"/> should implement this interface to expose metadata information 16/// Gets a filtered list of content types which are supported by the <see cref="Formatters.IInputFormatter"/> 26/// <returns>Content types which are supported by the <see cref="Formatters.IInputFormatter"/>.</returns>
ModelBinding\Binders\BodyModelBinder.cs (15)
17/// An <see cref="IModelBinder"/> which binds models from the request body using an <see cref="IInputFormatter"/> 22private readonly IList<IInputFormatter> _formatters; 30/// <param name="formatters">The list of <see cref="IInputFormatter"/>.</param> 35public BodyModelBinder(IList<IInputFormatter> formatters, IHttpRequestStreamReaderFactory readerFactory) 43/// <param name="formatters">The list of <see cref="IInputFormatter"/>.</param> 50IList<IInputFormatter> formatters, 60/// <param name="formatters">The list of <see cref="IInputFormatter"/>.</param> 68IList<IInputFormatter> formatters, 116var formatter = (IInputFormatter?)null; 191private static bool ShouldHandleException(IInputFormatter formatter) 202public static void InputFormatterSelected(ILogger logger, IInputFormatter inputFormatter, InputFormatterContext formatterContext) 212private static partial void InputFormatterSelected(ILogger logger, IInputFormatter inputFormatter, string? contentType); 214public static void InputFormatterRejected(ILogger logger, IInputFormatter inputFormatter, InputFormatterContext formatterContext) 224private static partial void InputFormatterRejected(ILogger logger, IInputFormatter inputFormatter, string? contentType);
ModelBinding\Binders\BodyModelBinderProvider.cs (8)
19private readonly IList<IInputFormatter> _formatters; 27/// <param name="formatters">The list of <see cref="IInputFormatter"/>.</param> 29public BodyModelBinderProvider(IList<IInputFormatter> formatters, IHttpRequestStreamReaderFactory readerFactory) 37/// <param name="formatters">The list of <see cref="IInputFormatter"/>.</param> 40public BodyModelBinderProvider(IList<IInputFormatter> formatters, IHttpRequestStreamReaderFactory readerFactory, ILoggerFactory loggerFactory) 48/// <param name="formatters">The list of <see cref="IInputFormatter"/>.</param> 53IList<IInputFormatter> formatters, 80typeof(IInputFormatter).FullName));
MvcOptions.cs (3)
44InputFormatters = new FormatterCollection<IInputFormatter>(); 99/// Gets a list of <see cref="IInputFormatter"/>s that are used by this application. 101public FormatterCollection<IInputFormatter> InputFormatters { get; }