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
bodyStreamThe body stream to read.
cancellationTokenCancellationTokenA token used to cancel the read operation.
Returns
- ValueTask<DiscordIngressPayload>
The fully buffered payload.