IntelligenceX
Class

RpcRetryOptions

Namespace IntelligenceX.Utils
Assembly IntelligenceX
Modifiers sealed

Configures retry behavior for JSON-RPC calls.

Inheritance

  • Object
  • RpcRetryOptions

Constructors

Methods

public Boolean IsRetryable(Exception ex) #
Returns: Boolean

Determines whether the supplied exception is retryable.

Parameters

ex System.Exception
Exception to evaluate.

Returns

true when the exception should be retried.

Properties

public Int32 RetryCount { get; set; } #

Gets or sets the number of retry attempts.

public TimeSpan InitialDelay { get; set; } #

Gets or sets the initial retry delay.

public TimeSpan MaxDelay { get; set; } #

Gets or sets the maximum retry delay.

public Func<Exception, Boolean> ShouldRetry { get; set; } #

Gets or sets a custom retry predicate.

public Boolean Enabled { get; } #

Gets a value indicating whether retries are enabled.