Table of Contents

Class TimeoutOptions

Namespace
Thirdweb
Assembly
Thirdweb.dll

Represents the timeout options for different types of operations.

public class TimeoutOptions : ITimeoutOptions
Inheritance
TimeoutOptions
Implements
Inherited Members

Remarks

Initializes a new instance of the TimeoutOptions class.

Constructors

TimeoutOptions(int?, int?, int?)

Represents the timeout options for different types of operations.

public TimeoutOptions(int? storage = null, int? rpc = null, int? other = null)

Parameters

storage int?

The timeout for storage operations (optional).

rpc int?

The timeout for RPC operations (optional).

other int?

The timeout for other operations (optional).

Remarks

Initializes a new instance of the TimeoutOptions class.

Methods

GetTimeout(TimeoutType, int)

Gets the timeout value for the specified operation type.

public int GetTimeout(TimeoutType type, int fallback = 120000)

Parameters

type TimeoutType

The type of operation.

fallback int

The fallback timeout value if none is specified (default is DEFAULT_FETCH_TIMEOUT).

Returns

int

The timeout value for the specified operation type.