15 references to Body
Microsoft.AspNetCore.Mvc.Abstractions (2)
ApiExplorer\ApiParameterDescription.cs (1)
55/// <item><description>it's bound from the request body (<see cref="BindingSource.Body"/>).</description></item>
ModelBinding\BindingInfo.cs (1)
261BindingSource == BindingSource.Body &&
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
DefaultApiDescriptionProvider.cs (2)
139if (parameter.Source == BindingSource.Body) 305if (parameter.Source == BindingSource.Body)
EndpointMetadataApiDescriptionProvider.cs (4)
128parameterDescription.Source == BindingSource.Body || 148Source = BindingSource.Body, 272return (BindingSource.Body, parameter.Name ?? string.Empty, fromBodyAttribute.AllowEmpty, parameterType); 317return (BindingSource.Body, parameter.Name ?? string.Empty, false, parameterType);
Microsoft.AspNetCore.Mvc.Core (7)
ApiBehaviorOptions.cs (1)
45/// Parameters that are complex (<see cref="ModelMetadata.IsComplexType"/>) are assumed to be bound from the body (<see cref="BindingSource.Body"/>).
ApplicationModels\InferParameterBindingInfoConvention.cs (3)
21/// <item>A complex type parameter (<see cref="ModelMetadata.IsComplexType"/>), not registered in the DI container, is assigned <see cref="BindingSource.Body"/>.</item> 92var fromBodyParameters = action.Parameters.Where(p => p.BindingInfo!.BindingSource == BindingSource.Body).ToList(); 123return metadata.BoundProperties.Any(prop => prop.BindingSource is not null) ? null : BindingSource.Body;
FromBodyAttribute.cs (1)
44public BindingSource BindingSource => BindingSource.Body;
ModelBinding\Binders\BodyModelBinder.cs (1)
18/// when a model has the binding source <see cref="BindingSource.Body"/>.
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
73context.BindingInfo.BindingSource.CanAcceptDataFrom(BindingSource.Body))