1 write to ModelType
Microsoft.AspNetCore.Mvc.Abstractions (1)
Formatters\InputFormatterContext.cs (1)
80
ModelType
= metadata.ModelType;
16 references to ModelType
Microsoft.AspNetCore.Mvc.Abstractions (3)
Formatters\IInputFormatter.cs (2)
13
/// <paramref name="context"/>'s <see cref="InputFormatterContext.
ModelType
"/>.
18
/// <paramref name="context"/>'s <see cref="InputFormatterContext.
ModelType
"/>. <c>false</c> otherwise.
Formatters\InputFormatterContext.cs (1)
88
/// <see cref="
ModelType
"/>.
Microsoft.AspNetCore.Mvc.Core (7)
Formatters\InputFormatter.cs (2)
50
if (!CanReadType(context.
ModelType
))
104
return InputFormatterResult.SuccessAsync(GetDefaultValueForType(context.
ModelType
));
Formatters\SystemTextJsonInputFormatter.cs (4)
75
model = await JsonSerializer.DeserializeAsync(httpContext.Request.Body, context.
ModelType
, SerializerOptions);
79
model = await JsonSerializer.DeserializeAsync(httpContext.Request.BodyReader, context.
ModelType
, SerializerOptions);
85
model = await JsonSerializer.DeserializeAsync(inputStream, context.
ModelType
, SerializerOptions);
128
Log.JsonInputSuccess(_logger, context.
ModelType
);
ModelBinding\Binders\BodyModelBinder.cs (1)
234
var modelType = formatterContext.
ModelType
.FullName;
Microsoft.AspNetCore.Mvc.Formatters.Xml (6)
XmlDataContractSerializerInputFormatter.cs (3)
143
var type = GetSerializableType(context.
ModelType
);
149
if (type != context.
ModelType
)
153
deserializedObject = unwrappable.Unwrap(declaredType: context.
ModelType
);
XmlSerializerInputFormatter.cs (3)
125
var type = GetSerializableType(context.
ModelType
);
133
if (type != context.
ModelType
)
137
deserializedObject = unwrappable.Unwrap(declaredType: context.
ModelType
);