Implemented interface member:
method
CanWriteResult
Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter.CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext)
5 overrides of CanWriteResult
BasicWebSite (2)
Formatters\CustomFormatter.cs (1)
21
public override bool
CanWriteResult
(OutputFormatterCanWriteContext context)
Formatters\PlainTextFormatter.cs (1)
18
public override bool
CanWriteResult
(OutputFormatterCanWriteContext context)
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\StringOutputFormatter.cs (1)
29
public override bool
CanWriteResult
(OutputFormatterCanWriteContext context)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\DefaultOutputFormatterSelectorTest.cs (1)
441
public override bool
CanWriteResult
(OutputFormatterCanWriteContext context)
Infrastructure\ObjectResultExecutorTest.cs (1)
552
public override bool
CanWriteResult
(OutputFormatterCanWriteContext context)
21 references to CanWriteResult
BasicWebSite (2)
Formatters\CustomFormatter.cs (1)
23
if (base.
CanWriteResult
(context))
Formatters\PlainTextFormatter.cs (1)
20
if (base.
CanWriteResult
(context))
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\StringOutputFormatter.cs (1)
36
return base.
CanWriteResult
(context);
Microsoft.AspNetCore.Mvc.Core.Test (5)
Formatters\JsonOutputFormatterTestBase.cs (1)
51
var actualCanWriteValue = formatter.
CanWriteResult
(outputFormatterContext);
Formatters\OutputFormatterTests.cs (4)
25
var result = formatter.
CanWriteResult
(context);
67
var result = formatter.
CanWriteResult
(context);
97
var result = formatter.
CanWriteResult
(context);
216
Assert.Throws<InvalidOperationException>(() => formatter.
CanWriteResult
(context));
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (12)
XmlDataContractSerializerOutputFormatterTest.cs (6)
128
formatter.
CanWriteResult
(context);
129
formatter.
CanWriteResult
(context);
387
var result = formatter.
CanWriteResult
(outputFormatterContext);
421
var actualCanWriteValue = formatter.
CanWriteResult
(outputFormatterContext);
661
var result = formatter.
CanWriteResult
(outputFormatterContext);
679
var canWriteResult = formatter.
CanWriteResult
(outputFormatterContext);
XmlSerializerOutputFormatterTest.cs (6)
136
formatter.
CanWriteResult
(context);
137
formatter.
CanWriteResult
(context);
360
var result = formatter.
CanWriteResult
(outputFormatterContext);
392
var actualCanWriteValue = formatter.
CanWriteResult
(outputFormatterContext);
478
var canWriteResult = formatter.
CanWriteResult
(outputFormatterContext);
497
var canWriteResult = formatter.
CanWriteResult
(outputFormatterContext);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
51
var actualCanWriteValue = formatter.
CanWriteResult
(outputFormatterContext);