Table of Contents

Class TimeoutManagerOptions

Namespace
Excalibur.Dispatch.Resilience.Polly
Assembly
Excalibur.Dispatch.Resilience.Polly.dll

Configuration options for the timeout manager.

public sealed class TimeoutManagerOptions
Inheritance
TimeoutManagerOptions
Inherited Members
Extension Methods

Properties

CacheTimeout

Gets or sets the timeout applied to cache operations.

public TimeSpan CacheTimeout { get; set; }

Property Value

TimeSpan

The maximum duration permitted for cache operations. Defaults to 5 seconds.

DatabaseTimeout

Gets or sets the timeout applied to database operations.

public TimeSpan DatabaseTimeout { get; set; }

Property Value

TimeSpan

The maximum duration permitted for database calls. Defaults to 15 seconds.

DefaultTimeout

Gets or sets the default timeout for all operations when no override is specified.

public TimeSpan DefaultTimeout { get; set; }

Property Value

TimeSpan

The baseline timeout applied across operations. Defaults to 30 seconds.

HttpTimeout

Gets or sets the timeout applied to HTTP operations.

public TimeSpan HttpTimeout { get; set; }

Property Value

TimeSpan

The maximum duration permitted for outbound HTTP requests. Defaults to 100 seconds.

LogTimeoutWarnings

Gets or sets a value indicating whether to log timeout warnings.

public bool LogTimeoutWarnings { get; set; }

Property Value

bool

true to emit warnings when operations exceed their timeout; otherwise, false. Defaults to true.

MessageQueueTimeout

Gets or sets the timeout applied to message queue operations.

public TimeSpan MessageQueueTimeout { get; set; }

Property Value

TimeSpan

The maximum duration permitted for queue operations. Defaults to 60 seconds.

OperationTimeouts

Gets specific timeouts for named operations.

public IDictionary<string, TimeSpan> OperationTimeouts { get; }

Property Value

IDictionary<string, TimeSpan>

A dictionary mapping operation names to their configured timeout values.

SlowOperationThreshold

Gets or sets the threshold for logging slow operations as a percentage of the timeout.

[Range(0, 1)]
public double SlowOperationThreshold { get; set; }

Property Value

double

A fractional value (0-1) that triggers slow-operation logging. Defaults to 0.8.