API reference
Method StoreAsync
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
StoreAsync(DiscordIngressPendingState, CancellationToken)
Stores or replaces a pending state entry.
public ValueTask StoreAsync(DiscordIngressPendingState state, CancellationToken cancellationToken = default)
Parameters
stateDiscordIngressPendingStateThe state entry to persist.
cancellationTokenCancellationTokenA token used to cancel the operation.
Returns
- ValueTask
A completed task once the state has been stored.
Remarks
Replacing an existing key is allowed so callers can refresh the expiry window for a logical flow.