Table of Contents

Class CdcProcessingOptions

Namespace
Excalibur.Cdc.Processing
Assembly
Excalibur.Cdc.dll

Configuration options for the CDC background processing hosted service.

public sealed class CdcProcessingOptions
Inheritance
CdcProcessingOptions
Inherited Members

Remarks

These options control the polling behavior and lifecycle of Excalibur.Cdc.Processing.CdcProcessingHostedService. They follow the same pattern as OutboxProcessingOptions.

Properties

DrainTimeout

Gets the drain timeout as a TimeSpan.

public TimeSpan DrainTimeout { get; }

Property Value

TimeSpan

The drain timeout duration.

DrainTimeoutSeconds

Gets or sets the drain timeout in seconds for graceful shutdown.

[Range(1, 2147483647)]
public int DrainTimeoutSeconds { get; set; }

Property Value

int

The drain timeout in seconds. Default is 30.

Remarks

When the service is stopping, this timeout controls how long to wait for in-flight processing to complete before forcing shutdown.

Enabled

Gets or sets whether this instance is enabled.

public bool Enabled { get; set; }

Property Value

bool

true if the background processor is enabled; otherwise, false. Default is true.

PollingInterval

Gets or sets the interval between polling cycles.

public TimeSpan PollingInterval { get; set; }

Property Value

TimeSpan

The polling interval. Default is 5 seconds.

UnhealthyThreshold

Gets or sets the number of consecutive errors before the service is considered unhealthy.

[Range(1, 2147483647)]
public int UnhealthyThreshold { get; set; }

Property Value

int

The consecutive error threshold. Default is 3.