Table of Contents

Method CancelAllPendingRequests

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

CancelAllPendingRequests(string?)

Cancels all pending REST requests across every bucket worker queue. Each cancelled request is faulted with OperationCanceledException. Use this as an emergency stop when stuck queues or cascading failures need immediate clearing.

public void CancelAllPendingRequests(string? reason = null)

Parameters

reason string

An optional reason included in the cancellation exception message.