Skip to content

TimeoutSettings

Represents settings related to connection-timeouts and processing duration.

Fields:

DateTime QueuedAt

Gets the timestamp when the request was queued for processing.

DateTime ProcessingStarted

Gets the timestamp when the processing of the request started by a connection.

TimeSpan ConnectTimeout

Gets or sets the maximum time to wait for establishing the connection to the target server. If set to TimeSpan.Zero or lower, no connect timeout logic is executed. Default value is 20 seconds.

TimeSpan Timeout

Gets or sets the maximum time to wait for the request to finish after the connection is established.

Methods:

Boolean IsConnectTimedOut(DateTime)

Returns true if the request has been stuck in the connection phase for too long.

Boolean IsTimedOut(DateTime)

Returns true if the time has passed the specified Timeout setting since processing started or if the connection has timed out.

Comments