Table of Contents
API reference

Method ReadAsync

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress
Assembly
DisCatSharp.Hosting.AspNetCore.dll

ReadAsync(Stream, CancellationToken)

Reads the full raw request body into an ingress payload.

ValueTask<DiscordIngressPayload> ReadAsync(Stream body, CancellationToken cancellationToken = default)

Parameters

body Stream

The body stream to read.

cancellationToken CancellationToken

A token used to cancel the read operation.

Returns

ValueTask<DiscordIngressPayload>

The fully buffered payload.