Table of Contents

Class TimeoutOptions

Namespace
Excalibur.Dispatch.Options.Middleware
Assembly
Excalibur.Dispatch.dll

Configuration options for timeout middleware.

public sealed class TimeoutOptions
Inheritance
TimeoutOptions
Inherited Members
Extension Methods

Properties

ActionTimeout

Gets or sets the timeout for Action messages. Default is 30 seconds.

public TimeSpan ActionTimeout { get; set; }

Property Value

TimeSpan

The timeout for Action messages. Default is 30 seconds.

DefaultTimeout

Gets or sets the default timeout for all message processing. Default is 30 seconds.

public TimeSpan DefaultTimeout { get; set; }

Property Value

TimeSpan

The default timeout for all message processing. Default is 30 seconds.

DocumentTimeout

Gets or sets the timeout for Document messages. Default is 60 seconds.

public TimeSpan DocumentTimeout { get; set; }

Property Value

TimeSpan

The timeout for Document messages. Default is 60 seconds.

Enabled

Gets or sets a value indicating whether timeout middleware is enabled. Default is true.

public bool Enabled { get; set; }

Property Value

bool

The current Enabled value.

EventTimeout

Gets or sets the timeout for Event messages. Default is 10 seconds.

public TimeSpan EventTimeout { get; set; }

Property Value

TimeSpan

The timeout for Event messages. Default is 10 seconds.

MessageTypeTimeouts

Gets message type-specific timeouts. Key is the message type name, value is the timeout duration.

public Dictionary<string, TimeSpan> MessageTypeTimeouts { get; init; }

Property Value

Dictionary<string, TimeSpan>

The current MessageTypeTimeouts value.

ThrowOnTimeout

Gets or sets a value indicating whether to throw an exception on timeout. If false, returns a timeout result instead. Default is true.

public bool ThrowOnTimeout { get; set; }

Property Value

bool

The current ThrowOnTimeout value.

Methods

Validate()

Validates the timeout configuration.

public void Validate()

Exceptions

ArgumentException

Thrown when configuration is invalid.