API reference
Method GetAsync
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
GetAsync(string, CancellationToken)
Resolves an existing pending state entry without removing it.
ValueTask<DiscordIngressPendingState?> GetAsync(string key, CancellationToken cancellationToken = default)
Parameters
keystringThe pending state key.
cancellationTokenCancellationTokenA token used to cancel the operation.
Returns
- ValueTask<DiscordIngressPendingState>
The pending state entry, or null when none is available.
Remarks
Use this for diagnostics or preview flows that must not consume the state yet.