Table of Contents

WriteResponseBodyAsync Method

Definition

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

write response body as an asynchronous operation.

public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)

Parameters

context OutputFormatterWriteContext

The formatter context associated with the call.

selectedEncoding Encoding

The Encoding that should be used to write the response.

Returns

Task

A Task which can write the response body.