LaunchBoxContributors
On this page

GameDataRetry14.1

Class in Unbroken.LaunchBox.Plugins.Components.GameData

C#
public sealed class GameDataRetry
Reports a source rate limit without holding a capability call open during the cooldown.

Constructors

GameDataRetry

C#
public GameDataRetry(TimeSpan retryAfter)
Creates a rate-limit outcome.
retryAfter
Minimum delay from receipt before the caller may retry. Must be nonnegative.

Properties

  • CanRetryGets or initializes whether the plugin permits another automatic attempt. When false, the caller must stop automatic retries for this request; any partial results remain usable.
  • CountsAsAttemptGets or initializes whether a request was attempted. Increment the request's AttemptNumber before retrying when true; preserve it when false because a shared cooldown prevented the request. This does not remove the caller's responsibility to bound retries.
  • RetryAfterGets the minimum delay before another attempt.

CanRetry

C#
public bool CanRetry { get; init; }
Gets or initializes whether the plugin permits another automatic attempt. When false, the caller must stop automatic retries for this request; any partial results remain usable.

CountsAsAttempt

C#
public bool CountsAsAttempt { get; init; }
Gets or initializes whether a request was attempted. Increment the request's AttemptNumber before retrying when true; preserve it when false because a shared cooldown prevented the request. This does not remove the caller's responsibility to bound retries.

RetryAfter

C#
public TimeSpan RetryAfter { get; }
Gets the minimum delay before another attempt.