Table of Contents
API reference

Method StoreAsync

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

StoreAsync(DiscordIngressPendingState, CancellationToken)

Stores or replaces a pending state entry.

ValueTask StoreAsync(DiscordIngressPendingState state, CancellationToken cancellationToken = default)

Parameters

state DiscordIngressPendingState

The state entry to persist.

cancellationToken CancellationToken

A 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.