Table of Contents
API reference

Interface IDiscordIngressPendingStateStore

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

Stores pending ingress state needed by callback-driven flows such as OAuth.

public interface IDiscordIngressPendingStateStore

Remarks

Implementations are responsible for preserving one-time callback state between the outbound authorization redirect and the inbound callback request. ConsumeAsync(string, CancellationToken) should remove entries atomically so state cannot be replayed.

Methods

ConsumeAsync(string, CancellationToken)

Resolves and removes an existing pending state entry.

GetAsync(string, CancellationToken)

Resolves an existing pending state entry without removing it.

RemoveAsync(string, CancellationToken)

Removes a pending state entry when present.

StoreAsync(DiscordIngressPendingState, CancellationToken)

Stores or replaces a pending state entry.