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