20 overrides of WriteResponseBodyAsync
BasicWebSite (4)
Formatters\CustomFormatter.cs (1)
34public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Formatters\PlainTextFormatter.cs (1)
32public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Formatters\VCardFormatter_V3.cs (1)
29public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Formatters\VCardFormatter_V4.cs (1)
30public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\StringOutputFormatter.cs (1)
43public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding encoding)
Formatters\SystemTextJsonOutputFormatter.cs (1)
61public sealed override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Microsoft.AspNetCore.Mvc.Core.Test (10)
Formatters\FormatterCollectionTest.cs (2)
50public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) 58public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Formatters\TextOutputFormatterTests.cs (2)
264public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) 284public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Infrastructure\DefaultOutputFormatterSelectorTest.cs (3)
402public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) 418public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) 433public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Infrastructure\ObjectResultExecutorTest.cs (3)
511public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) 529public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) 544public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
XmlDataContractSerializerOutputFormatter.cs (1)
213public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
XmlSerializerOutputFormatter.cs (1)
192public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonOutputFormatter.cs (1)
134public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
106public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
13 references to WriteResponseBodyAsync
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\TextOutputFormatter.cs (1)
148return WriteResponseBodyAsync(context, selectedEncoding);
Microsoft.AspNetCore.Mvc.Core.Test (6)
Formatters\JsonOutputFormatterTestBase.cs (3)
101await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding(encodingAsString)); 133await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-8")); 150await Record.ExceptionAsync(() => jsonFormatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.UTF8));
Formatters\SystemTextJsonOutputFormatterTest.cs (3)
83await Assert.ThrowsAsync<TimeZoneNotFoundException>(() => formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-16"))); 110await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-8")); 140await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-8"));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (6)
NewtonsoftJsonOutputFormatterTest.cs (3)
459await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-8")); 503await Assert.ThrowsAsync<OperationCanceledException>(() => formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-8"))); 538await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-8"));
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (3)
101await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding(encodingAsString)); 133await formatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.GetEncoding("utf-8")); 150await Record.ExceptionAsync(() => jsonFormatter.WriteResponseBodyAsync(outputFormatterContext, Encoding.UTF8));