Click or drag to resize

AspNetCoreRpcServerHandlerWriteResponseAsync Method

[This is preliminary documentation and is subject to change.]

Asynchronously writes JSON-RPC response to the HTTP response.

Namespace:  JsonRpc.AspNetCore
Assembly:  JsonRpc.AspNetCore (in JsonRpc.AspNetCore.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
protected Task WriteResponseAsync(
	HttpResponse httpResponse,
	ResponseMessage response,
	int statusCode,
	CancellationToken cancellationToken
)

Parameters

httpResponse
Type: HttpResponse
HTTP response object.
response
Type: JsonRpc.MessagesResponseMessage
JSON-RPC response, or null if the response is empty.
statusCode
Type: SystemInt32
the HTTP status code.
cancellationToken
Type: System.ThreadingCancellationToken
a token used to cancel the operation.

Return Value

Type: Task
See Also