Implemented interface member:
method
CanRead
Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter.CanRead(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext)
1 override of CanRead
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonPatchInputFormatter.cs (1)
81
public override bool
CanRead
(InputFormatterContext context)
20 references to CanRead
Microsoft.AspNetCore.Mvc.Core.Test (11)
Formatters\InputFormatterTest.cs (10)
47
var result = formatter.
CanRead
(context);
81
var result = formatter.
CanRead
(context);
112
var result = formatter.
CanRead
(context);
146
var result = formatter.
CanRead
(context);
177
var result = formatter.
CanRead
(context);
214
var result = formatter.
CanRead
(context);
244
var result = formatter.
CanRead
(context);
282
var result = formatter.
CanRead
(context);
311
var result = formatter.
CanRead
(context);
393
Assert.Throws<InvalidOperationException>(() => formatter.
CanRead
(context));
Formatters\JsonInputFormatterTestBase.cs (1)
44
var result = formatter.
CanRead
(formatterContext);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (7)
XmlDataContractSerializerInputFormatterTest.cs (3)
85
var result = formatter.
CanRead
(formatterContext);
102
formatter.
CanRead
(context);
103
formatter.
CanRead
(context);
XmlSerializerInputFormatterTest.cs (4)
264
var result = formatter.
CanRead
(formatterContext);
282
var result = formatter.
CanRead
(context);
299
formatter.
CanRead
(context);
300
formatter.
CanRead
(context);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonPatchInputFormatter.cs (1)
92
return base.
CanRead
(context);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (1)
44
var result = formatter.
CanRead
(formatterContext);