Table of Contents

Class RetryOptions

Namespace
IceRpc.Retry
Assembly
IceRpc.Retry.dll

A property bag used to configure a RetryInterceptor.

public sealed record RetryOptions : IEquatable<RetryOptions>
Inheritance
RetryOptions
Implements
Inherited Members

Properties

MaxAttempts

Gets or sets the maximum number of attempts for retrying a request.

public int MaxAttempts { get; set; }

Property Value

int

The maximum number of attempts for retrying a request. Defaults to 2 attempts.

MaxPayloadSize

Gets or sets the maximum size of the request payload in bytes for which retries would be considered. Requests with a larger payload or a payload continuation are never retried.

public int MaxPayloadSize { get; set; }

Property Value

int

The maximum request payload size in bytes for which retries will be attempted. Defaults to 1 MB.

Remarks

The ability to retry depends on keeping the request payload around until a successful response has been received or retries are no longer possible, this setting affects the working memory that the application will consume.