7 implementations of CanWriteResult
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\HttpNoContentOutputFormatter.cs (1)
20public bool CanWriteResult(OutputFormatterCanWriteContext context)
Formatters\OutputFormatter.cs (1)
93public virtual bool CanWriteResult(OutputFormatterCanWriteContext context)
Formatters\StreamOutputFormatter.cs (1)
13public bool CanWriteResult(OutputFormatterCanWriteContext context)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
241public bool CanWriteResult(OutputFormatterCanWriteContext context) => true;
Infrastructure\DefaultOutputFormatterSelectorTest.cs (1)
381public virtual bool CanWriteResult(OutputFormatterCanWriteContext context)
Infrastructure\ObjectResultExecutorTest.cs (1)
487public virtual bool CanWriteResult(OutputFormatterCanWriteContext context)
ObjectResultTests.cs (1)
172public bool CanWriteResult(OutputFormatterCanWriteContext context)
12 references to CanWriteResult
Microsoft.AspNetCore.Mvc.Abstractions (3)
Formatters\OutputFormatterCanWriteContext.cs (3)
10/// A context object for <see cref="IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext)"/>. 35/// <see cref="IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext)"/> method is called, 43/// This allows <see cref="IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext)"/> to
Microsoft.AspNetCore.Mvc.Core (4)
Infrastructure\DefaultOutputFormatterSelector.cs (4)
179if (formatter.CanWriteResult(formatterContext)) 203if (formatter.CanWriteResult(formatterContext)) 225if (formatter.CanWriteResult(formatterContext)) 254if (formatter.CanWriteResult(formatterContext))
Microsoft.AspNetCore.Mvc.Core.Test (5)
AcceptedAtActionResultTests.cs (1)
261formatter.Setup(f => f.CanWriteResult(It.IsAny<OutputFormatterWriteContext>())).Returns(true);
AcceptedAtRouteResultTests.cs (1)
169formatter.Setup(f => f.CanWriteResult(It.IsAny<OutputFormatterWriteContext>())).Returns(true);
AcceptedResultTests.cs (1)
126formatter.Setup(f => f.CanWriteResult(It.IsAny<OutputFormatterWriteContext>())).Returns(true);
Infrastructure\ControllerActionInvokerTest.cs (1)
1721.Setup(f => f.CanWriteResult(It.IsAny<OutputFormatterCanWriteContext>()))
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
188formatter.Setup(f => f.CanWriteResult(It.IsAny<OutputFormatterWriteContext>())).Returns(false);