Class TimeoutOptions
- Namespace
- Thirdweb
- Assembly
- Thirdweb.dll
Represents the timeout options for different types of operations.
public class TimeoutOptions
- Inheritance
-
TimeoutOptions
- 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
storageint?The timeout for storage operations (optional).
rpcint?The timeout for RPC operations (optional).
otherint?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
typeTimeoutTypeThe type of operation.
fallbackintThe fallback timeout value if none is specified (default is Thirdweb.Constants.DEFAULT_FETCH_TIMEOUT).
Returns
- int
The timeout value for the specified operation type.