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)
261
BindingSource == BindingSource.
Body
&&
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
DefaultApiDescriptionProvider.cs (2)
139
if (parameter.Source == BindingSource.
Body
)
305
if (parameter.Source == BindingSource.
Body
)
EndpointMetadataApiDescriptionProvider.cs (4)
128
parameterDescription.Source == BindingSource.
Body
||
148
Source = BindingSource.
Body
,
272
return (BindingSource.
Body
, parameter.Name ?? string.Empty, fromBodyAttribute.AllowEmpty, parameterType);
317
return (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>
92
var fromBodyParameters = action.Parameters.Where(p => p.BindingInfo!.BindingSource == BindingSource.
Body
).ToList();
123
return metadata.BoundProperties.Any(prop => prop.BindingSource is not null) ? null : BindingSource.
Body
;
FromBodyAttribute.cs (1)
44
public 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)
73
context.BindingInfo.BindingSource.CanAcceptDataFrom(BindingSource.
Body
))